diff --git a/modules/common/nix.nix b/modules/common/nix.nix index 744572b..8555235 100644 --- a/modules/common/nix.nix +++ b/modules/common/nix.nix @@ -1,16 +1,9 @@ +{ flakeRoot, ... }: + { nix = { channel.enable = false; - gc = { - automatic = true; - dates = "weekly"; - - persistent = true; - - options = "--delete-older-than 7d"; - }; - optimise = { automatic = true; dates = [ "1w" ]; @@ -27,4 +20,18 @@ }; documentation.man.enable = false; + + programs.nh = { + enable = true; + + flake = toString flakeRoot; + + clean = { + enable = true; + + dates = "weekly"; + + extraArgs = "--delete-older-than 7d"; + }; + }; }