summaryrefslogtreecommitdiff
path: root/modules/core/nix/nh.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-11-02 07:12:34 -0700
committerFuwn <[email protected]>2024-11-02 07:12:34 -0700
commit0dfe82cc7cb73d7a2c8894ffc7579721d650930d (patch)
tree85a91b48076fdf40f784f096a7b61cea44b7af16 /modules/core/nix/nh.nix
parenthimeji: pin september image (diff)
downloadnixos-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.nix17
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";
+ };
};
- };
}