nichts/modules/cli/nh.nix

20 lines
351 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
lib,
config,
...
}:
with lib; let
cfg = config.modules.programs.nh;
2024-05-14 20:33:43 +02:00
in {
options.modules.programs.nh.enable = mkEnableOption "nh";
config = mkIf cfg.enable {
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
2024-07-22 00:05:07 +02:00
flake = "/home/vali/projects/nichts";
};
2024-05-14 20:33:43 +02:00
};
}