diff options
| author | Fuwn <[email protected]> | 2024-11-02 07:12:34 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-11-02 07:12:34 -0700 |
| commit | 0dfe82cc7cb73d7a2c8894ffc7579721d650930d (patch) | |
| tree | 85a91b48076fdf40f784f096a7b61cea44b7af16 /modules/core/nix/nh.nix | |
| parent | himeji: pin september image (diff) | |
| download | nixos-config-0dfe82cc7cb73d7a2c8894ffc7579721d650930d.tar.xz nixos-config-0dfe82cc7cb73d7a2c8894ffc7579721d650930d.zip | |
core: limit nh cleaner to extended nix support option
Diffstat (limited to 'modules/core/nix/nh.nix')
| -rw-r--r-- | modules/core/nix/nh.nix | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/modules/core/nix/nh.nix b/modules/core/nix/nh.nix index 6ea21e7..f73ff04 100644 --- a/modules/core/nix/nh.nix +++ b/modules/core/nix/nh.nix @@ -1,10 +1,15 @@ +{ config, ... }: { - programs.nh = { - enable = true; + programs.nh = + let + extendedSupport = config.modules.nix.extendedSupport; + in + { + enable = extendedSupport; - clean = { - enable = true; - dates = "daily"; + clean = { + enable = extendedSupport; + dates = "daily"; + }; }; - }; } |