1
0
Fork 0
nix-config/modules/nixos/cli/nh/default.nix
2025-03-08 11:15:56 +01:00

26 lines
445 B
Nix

{
config,
lib,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.cli.nh;
in
{
options.${namespace}.cli.nh = with types; {
enable = mkBoolOpt false "Whether or not to use nh.";
};
config = mkIf cfg.enable {
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/philipp/Documents/nix-config";
};
};
}