blob: da68f66879cbae03c64fe79ea6520b83383c9337 [file] [log] [blame]
Samuel Shuertf1d6e992023-11-24 17:28:33 -05001{
2 description = "Initialization flake";
3
4 inputs = {
Samuel Shuert80c2dd42023-12-01 22:03:34 -05005 nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
Samuel Shuertf1d6e992023-11-24 17:28:33 -05006 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 Shuert80c2dd42023-12-01 22:03:34 -050025 system.stateVersion = "23.11";
26 nixpkgs.config.permittedInsecurePackages = [
27 "mailspring-1.12.0"
28 ];
Samuel Shuertf1d6e992023-11-24 17:28:33 -050029 }
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}