blob: da68f66879cbae03c64fe79ea6520b83383c9337 [file] [log] [blame]
{
description = "Initialization flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
alacritty-themes.url = "github:rajasegar/alacritty-themes";
alacritty-themes.flake = false;
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
lanzaboote.url = "github:nix-community/lanzaboote";
};
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
nixosConfigurations."codedPC" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModules.home-manager
inputs.lanzaboote.nixosModules.lanzaboote
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = "23.11";
nixpkgs.config.permittedInsecurePackages = [
"mailspring-1.12.0"
];
}
] ++ (nixpkgs.lib.pipe ./modules [
(import ./utils/nixFilesIn.nix nixpkgs.lib)
(map import)
]) ++ (nixpkgs.lib.pipe ./homes [
(import ./utils/nixFilesIn.nix nixpkgs.lib)
(map import)
]);
specialArgs = { inherit inputs; };
};
};
}