Move host-specific modules

This commit is contained in:
Oliver Davies 2024-11-22 01:18:31 +00:00
parent f232ce4679
commit 71f335870d
2 changed files with 11 additions and 8 deletions

View file

@ -64,6 +64,15 @@
lemp11 = mkNixos {
desktop = true;
hostname = "lemp11";
# TODO: move the rest of the modules here.
modules = [
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-gpu-intel
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-laptop-hdd
nixos-hardware.nixosModules.system76
];
};
};

View file

@ -9,6 +9,7 @@
{
desktop ? false,
hostname,
modules ? [ ],
}:
let
configuration = import ./configuration.nix {
@ -44,12 +45,5 @@ inputs.nixpkgs.lib.nixosSystem {
configuration
hardwareConfiguration
# TODO: only for "lemp11".
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-gpu-intel
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-laptop-hdd
nixos-hardware.nixosModules.system76
];
] ++ modules;
}