1
0
Fork 0
nix-config/modules/nixos/cli/nh/default.nix

26 lines
487 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 = "${config.home-manager.users.philipp.home.homeDirectory}/Documents/nix-config";
};
};
}