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 { lemp11 = mkNixos {
desktop = true; desktop = true;
hostname = "lemp11"; 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, desktop ? false,
hostname, hostname,
modules ? [ ],
}: }:
let let
configuration = import ./configuration.nix { configuration = import ./configuration.nix {
@ -44,12 +45,5 @@ inputs.nixpkgs.lib.nixosSystem {
configuration configuration
hardwareConfiguration hardwareConfiguration
] ++ modules;
# 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
];
} }