my system configurations ^-^
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: tidy flake up a little

willow 2ee7f44e 76c2b85f

+41 -45
+38 -45
flake.nix
··· 1 1 { 2 2 description = "NixOS configuration of 42willow"; 3 + 4 + outputs = { 5 + self, 6 + nixpkgs, 7 + home-manager, 8 + ... 9 + } @ inputs: { 10 + nixosConfigurations = { 11 + earthy = nixpkgs.lib.nixosSystem { 12 + modules = [ 13 + ./hosts/earthy 14 + home-manager.nixosModules.home-manager 15 + ]; 16 + specialArgs = { 17 + inherit self inputs; 18 + }; 19 + }; 20 + anemone = nixpkgs.lib.nixosSystem { 21 + modules = [ 22 + ./hosts/anemone 23 + home-manager.nixosModules.home-manager 24 + ]; 25 + specialArgs = { 26 + inherit self inputs; 27 + }; 28 + }; 29 + lily = nixpkgs.lib.nixosSystem { 30 + modules = [ 31 + ./hosts/lily 32 + home-manager.nixosModules.home-manager 33 + ]; 34 + specialArgs = { 35 + inherit self inputs; 36 + }; 37 + }; 38 + }; 39 + }; 40 + 3 41 inputs = { 4 42 nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; 5 43 nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; ··· 96 134 # url = "github:nix-community/nixvim/"; 97 135 # inputs.nixpkgs.follows = "nixpkgs-unstable"; 98 136 # }; 99 - }; 100 - 101 - outputs = { 102 - self, 103 - nixpkgs, 104 - home-manager, 105 - ... 106 - } @ inputs: let 107 - username = "willow"; 108 - in { 109 - nixosConfigurations = { 110 - earthy = nixpkgs.lib.nixosSystem { 111 - system = "x86_64-linux"; 112 - modules = [ 113 - ./hosts/earthy 114 - home-manager.nixosModules.home-manager 115 - ]; 116 - specialArgs = { 117 - host = "earthy"; 118 - inherit self inputs username; 119 - }; 120 - }; 121 - anemone = nixpkgs.lib.nixosSystem { 122 - system = "aarch64-linux"; 123 - modules = [ 124 - ./hosts/anemone 125 - home-manager.nixosModules.home-manager 126 - ]; 127 - specialArgs = { 128 - host = "anemone"; 129 - inherit self inputs username; 130 - }; 131 - }; 132 - lily = nixpkgs.lib.nixosSystem { 133 - system = "x86_64-linux"; 134 - modules = [ 135 - ./hosts/lily 136 - home-manager.nixosModules.home-manager 137 - ]; 138 - specialArgs = { 139 - host = "lily"; 140 - inherit self inputs username; 141 - }; 142 - }; 143 - }; 144 137 }; 145 138 }
+3
hosts/anemone/default.nix
··· 9 9 swapFile = "/swapfile"; 10 10 in { 11 11 imports = [ 12 + # TODO)) hardware-configuration! 12 13 inputs.raspberry-pi-nix.nixosModules.raspberry-pi 13 14 (modulesPath + "/installer/scan/not-detected.nix") 14 15 # (modulesPath + "/installer/sd-card/sd-image.nix") ··· 16 17 # (modulesPath + "/installer/sd-card/sd-image-aarch64-installer.nix") 17 18 # (modulesPath + "/installer/sd-card/sd-image-raspberrypi.nix") 18 19 ]; 20 + 21 + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; # TODO)) move to hardware-configuration 19 22 20 23 raspberry-pi-nix = { 21 24 board = "bcm2711"; # raspberry pi {2, 3, 4}