make switch-to-configuration-ng module

This commit is contained in:
Sakooooo 2024-08-01 16:30:09 +04:00
parent 99b3dee780
commit 4b8070da88
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 16 additions and 0 deletions

View file

@ -2,5 +2,6 @@
imports = [
./search.nix
./optimization.nix
./switch-to-configuration-ng.nix
];
}

View 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;
};
};
}