make switch-to-configuration-ng module
This commit is contained in:
parent
99b3dee780
commit
4b8070da88
2 changed files with 16 additions and 0 deletions
|
@ -2,5 +2,6 @@
|
|||
imports = [
|
||||
./search.nix
|
||||
./optimization.nix
|
||||
./switch-to-configuration-ng.nix
|
||||
];
|
||||
}
|
||||
|
|
15
modules/shell/nix/switch-to-configuration-ng.nix
Normal file
15
modules/shell/nix/switch-to-configuration-ng.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ inputs, options, config, lib, ...}:
|
||||
let
|
||||
cfg = config.modules.shell.nix.switch-to-configuration-ng;
|
||||
in {
|
||||
options.modules.shell.nix.switch-configuration-ng = {
|
||||
enable = lib.mkEnableOption false;
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
system.switch = {
|
||||
enable = false;
|
||||
enableNg = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue