hosts: add nas

This commit is contained in:
2023-01-07 16:13:39 +01:00
parent 5442b865a8
commit b61bf98e6f
4 changed files with 245 additions and 0 deletions

View File

@@ -106,6 +106,32 @@ in
];
};
nas = lib.nixosSystem { # Desktop profile
inherit system;
#user = "dmz-user";
specialArgs = { inherit inputs user location nixos-hardware nur agenix; };
modules = [
agenix.nixosModule
nur.nixosModules.nur
./nas
./configuration_desktop.nix
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-pc-ssd
home-manager.nixosModules.home-manager {
nixpkgs.overlays = [
nur.overlay
];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit user; };
home-manager.users.${user} = {
imports = [(import ./home_server.nix)] ++ [(import ./nas/home.nix)];
};
}
];
};
q920 = lib.nixosSystem { # Laptop profile
inherit system;