hosts: create first server prototype
This commit is contained in:
@@ -32,7 +32,7 @@ in
|
||||
nur.nixosModules.nur
|
||||
#hyprland.nixosModules.default
|
||||
./desktop
|
||||
./configuration.nix
|
||||
./configuration_desktop.nix
|
||||
nixos-hardware.nixosModules.common-cpu-amd
|
||||
nixos-hardware.nixosModules.common-gpu-amd
|
||||
nixos-hardware.nixosModules.common-pc-ssd
|
||||
@@ -59,7 +59,7 @@ in
|
||||
nur.nixosModules.nur
|
||||
#hyprland.nixosModules.default
|
||||
./laptop
|
||||
./configuration.nix
|
||||
./configuration_desktop.nix
|
||||
nixos-hardware.nixosModules.common-cpu-intel
|
||||
nixos-hardware.nixosModules.common-gpu-intel
|
||||
nixos-hardware.nixosModules.common-pc-ssd
|
||||
@@ -78,6 +78,32 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
dmz-services = lib.nixosSystem { # Desktop profile
|
||||
inherit system;
|
||||
user = "dmz-user";
|
||||
specialArgs = { inherit inputs user location nixos-hardware nur; };
|
||||
modules = [
|
||||
nur.nixosModules.nur
|
||||
./server
|
||||
./configuration_server.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 ./server/home.nix)];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
q920 = lib.nixosSystem { # Laptop profile
|
||||
inherit system;
|
||||
specialArgs = { inherit inputs user location hyprland; };
|
||||
|
||||
Reference in New Issue
Block a user