modules/shell: nix add nh cli
This commit is contained in:
parent
008db1b132
commit
d3970e07d3
2 changed files with 19 additions and 0 deletions
|
@ -3,5 +3,6 @@
|
||||||
./search.nix
|
./search.nix
|
||||||
./optimization.nix
|
./optimization.nix
|
||||||
./switch-to-configuration-ng.nix
|
./switch-to-configuration-ng.nix
|
||||||
|
./nh.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
18
modules/shell/nix/nh.nix
Normal file
18
modules/shell/nix/nh.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{ inputs, options, config, lib, pkgs, ...}:
|
||||||
|
# funny nix cli
|
||||||
|
let cfg = config.modules.shell.nix.nh;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.shell.nix.nh = {
|
||||||
|
enable = lib.mkEnableOption false;
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.nh = {
|
||||||
|
enable = true;
|
||||||
|
# TODO try this later
|
||||||
|
# clean.enable = true;
|
||||||
|
# clean.extraArgs = "--keep-since 4d --keep 3";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue