Hosts: fix mod override
In some occasions the module path was renamed. To avoid conflicts, the old path must be disabled manually. E.g. ```nix { unstableModules = [ "services/ttys/getty.nix" ]; addToDisabledModules = [ "services/ttys/agetty.nix" ]; } ```
This commit is contained in:
parent
70b26dd430
commit
17fb425844
|
@ -15,6 +15,7 @@ let
|
|||
inherit (pkgset) osPkgs unstablePkgs;
|
||||
|
||||
unstableModules = [ ];
|
||||
addToDisabledModules = [ ];
|
||||
|
||||
config = hostName:
|
||||
lib.nixosSystem {
|
||||
|
@ -30,7 +31,7 @@ let
|
|||
core = self.nixosModules.profiles.core;
|
||||
|
||||
modOverrides = { config, unstableModulesPath, ... }: {
|
||||
disabledModules = unstableModules;
|
||||
disabledModules = unstableModules ++ addToDisabledModules;
|
||||
imports = map
|
||||
(path: "${unstableModulesPath}/${path}")
|
||||
unstableModules;
|
||||
|
|
Loading…
Reference in a new issue