2024-08-01 16:30:09 +04:00
|
|
|
{ inputs, options, config, lib, ...}:
|
|
|
|
let
|
|
|
|
cfg = config.modules.shell.nix.switch-to-configuration-ng;
|
|
|
|
in {
|
2024-08-01 16:31:27 +04:00
|
|
|
options.modules.shell.nix.switch-to-configuration-ng = {
|
2024-08-01 16:30:09 +04:00
|
|
|
enable = lib.mkEnableOption false;
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
system.switch = {
|
|
|
|
enable = false;
|
|
|
|
enableNg = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|