nichts/modules/programs/cli/nh.mod.nix
Bloxx12 132426232d
nh: fox NH_FLAKE path
Signed-off-by: Bloxx12 <charlie@charlieroot.dev>
Change-Id: I6a6a6964bd6df9956c18c5972f5b69523e8a91bc
2025-07-19 16:41:17 +02:00

21 lines
479 B
Nix

{
config,
lib,
...
}: let
cfg = config.modules.programs.nh;
inherit (config.modules.other.system) username;
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
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}/repos/projects/nichts/main";
};
};
}