Skip to content
forked from divnix/digga

Commit

Permalink
Hosts: fix mod override
Browse files Browse the repository at this point in the history
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"
  ];
}
```
  • Loading branch information
David Arnold authored Jan 11, 2021
1 parent 0913d90 commit 547e5f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ let
inherit (pkgset) osPkgs unstablePkgs;

unstableModules = [ ];
addToDisabledModules = [ ];

config = hostName:
lib.nixosSystem {
Expand All @@ -30,7 +31,7 @@ let
core = self.nixosModules.profiles.core;

modOverrides = { config, unstableModulesPath, ... }: {
disabledModules = unstableModules;
disabledModules = unstableModules ++ addToDisabledModules;
imports = map
(path: "${unstableModulesPath}/${path}")
unstableModules;
Expand Down

0 comments on commit 547e5f6

Please sign in to comment.