21 lines
366 B
Nix
Raw Permalink Normal View History

2025-05-04 02:47:36 +02:00
{
config,
lib,
...
}:
with lib; let
2025-07-27 22:50:25 +02:00
cfg = config.home.cli.nh;
2025-05-04 02:47:36 +02:00
in {
2025-07-27 22:50:25 +02:00
options.home.cli.nh.flake = mkOption {
2025-05-04 02:47:36 +02:00
type = types.path;
default = "/home/phundrak/.dotfiles";
example = "/etc/nixos";
};
config.programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 15d --keep 5";
inherit (cfg) flake;
};
}