Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 1 | { |
| 2 | description = "Initialization flake"; |
| 3 | |
| 4 | inputs = { |
Samuel Shuert | 80c2dd4 | 2023-12-01 22:03:34 -0500 | [diff] [blame^] | 5 | nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; |
Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 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" ]; |
Samuel Shuert | 80c2dd4 | 2023-12-01 22:03:34 -0500 | [diff] [blame^] | 25 | system.stateVersion = "23.11"; |
| 26 | nixpkgs.config.permittedInsecurePackages = [ |
| 27 | "mailspring-1.12.0" |
| 28 | ]; |
Samuel Shuert | f1d6e99 | 2023-11-24 17:28:33 -0500 | [diff] [blame] | 29 | } |
| 30 | ] ++ (nixpkgs.lib.pipe ./modules [ |
| 31 | (import ./utils/nixFilesIn.nix nixpkgs.lib) |
| 32 | (map import) |
| 33 | ]) ++ (nixpkgs.lib.pipe ./homes [ |
| 34 | (import ./utils/nixFilesIn.nix nixpkgs.lib) |
| 35 | (map import) |
| 36 | ]); |
| 37 | specialArgs = { inherit inputs; }; |
| 38 | }; |
| 39 | }; |
| 40 | } |