add desktop host

This commit is contained in:
2022-11-05 10:25:12 +01:00
parent 33e20b8685
commit 26e223eb56
5 changed files with 357 additions and 8 deletions

View File

@@ -25,21 +25,28 @@ let
in
{
desktop = lib.nixosSystem { # Desktop profile
desktop = lib.nixosSystem { # Desktop profile
inherit system;
specialArgs = { inherit inputs user location; }; # Pass flake variable
modules = [ # Modules that are used.
specialArgs = { inherit inputs user locationhyprland nixos-hardware nur; };
modules = [
nur.nixosModules.nur
hyprland.nixosModules.default
#hyprland.nixosModules.default
./desktop
./configuration.nix
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-gpu-amd
nixos-hardware.nixosModules.common-pc-ssd
home-manager.nixosModules.home-manager { # Home-Manager module that is used.
home-manager.nixosModules.home-manager {
nixpkgs.overlays = [
nur.overlay
];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit user; }; # Pass flake variable
home-manager.extraSpecialArgs = { inherit user; };
home-manager.users.${user} = {
imports = [(import ./home.nix)] ++ [(import ./desktop/home.nix)];
imports = [(import ./home.nix)] ++ [(import ./desktop/home.nix)];
};
}
];
@@ -50,10 +57,12 @@ in
specialArgs = { inherit inputs user location hyprland nixos-hardware nur; };
modules = [
nur.nixosModules.nur
hyprland.nixosModules.default
#hyprland.nixosModules.default
./laptop
./configuration.nix
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-gpu-intel
nixos-hardware.nixosModules.common-pc-ssd
home-manager.nixosModules.home-manager {
nixpkgs.overlays = [