Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 1 | { |
| 2 | description = "Initialization flake"; |
| 3 | |
| 4 | inputs = { |
| 5 | nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; |
| 6 | nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions"; |
| 7 | |
| 8 | alacritty-themes.url = "github:rajasegar/alacritty-themes"; |
| 9 | alacritty-themes.flake = false; |
| 10 | |
| 11 | home-manager.url = "github:nix-community/home-manager"; |
| 12 | home-manager.inputs.nixpkgs.follows = "nixpkgs"; |
| 13 | |
| 14 | lanzaboote.url = "github:nix-community/lanzaboote"; |
| 15 | }; |
| 16 | |
| 17 | outputs = { self, nixpkgs, home-manager, ... }@inputs: { |
| 18 | nixosConfigurations."codedPC" = nixpkgs.lib.nixosSystem { |
| 19 | system = "x86_64-linux"; |
| 20 | modules = [ |
| 21 | home-manager.nixosModules.home-manager |
| 22 | inputs.lanzaboote.nixosModules.lanzaboote |
| 23 | { |
| 24 | nix.settings.experimental-features = [ "nix-command" "flakes" ]; |
| 25 | system.stateVersion = "23.05"; |
| 26 | } |
| 27 | ] ++ (nixpkgs.lib.pipe ./modules [ |
| 28 | (import ./utils/nixFilesIn.nix nixpkgs.lib) |
| 29 | (map import) |
| 30 | ]) ++ (nixpkgs.lib.pipe ./homes [ |
| 31 | (import ./utils/nixFilesIn.nix nixpkgs.lib) |
| 32 | (map import) |
| 33 | ]); |
| 34 | specialArgs = { inherit inputs; }; |
| 35 | }; |
| 36 | }; |
| 37 | } |