diff --git a/modules/nix.nix b/modules/nix.nix index f07e6ac..9fdbbcb 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -1,5 +1,11 @@ { lib, pkgs, inputs, config, ... }: -{ +let + gcConfig = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 14d"; + }; +in { environment.variables = { NIXPKGS_ALLOW_UNFREE = "1"; }; @@ -37,12 +43,9 @@ }; }; - nix.optimise.automatic = true; - nix.gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 14d"; - }; + nix.optimise.automatic = true; # likely not needed w/ auto-optimise-store, comfy to keep though + nix.gc = gcConfig; + hm.nix.gc = gcConfig; programs.command-not-found.enable = false; programs.nix-index.enable = true;