From 0dfe82cc7cb73d7a2c8894ffc7579721d650930d Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 2 Nov 2024 07:12:34 -0700 Subject: core: limit nh cleaner to extended nix support option --- modules/core/nix/nh.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'modules') 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"; + }; }; - }; } -- cgit v1.2.3