blob: 49e987bfb249c2a05a396c897ef4a1612da13450 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ lib, config, ... }:
let
conf = config.addons.nh;
in
{
options.addons.nh = {
enable = lib.mkOption {
default = true;
description = "Enable nix cli helper";
};
flake_path = lib.mkOption {
default = "/home/wilkuu/nix-config/";
description = "Flake location for nh to use";
};
};
config = {
programs.nh = {
enable = conf.enable;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = conf.flake_path; # sets NH_OS_FLAKE variable for you
};
};
}
|