nichts/modules/programs/cli/nh.nix

20 lines
408 B
Nix

{
lib,
config,
...
}:
with lib; let
cfg = config.modules.programs.nh;
inherit (config.modules.other.system) username;
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";
flake = "/home/${username}/projects/nichts";
};
};
}