allow gc on home-manager

This commit is contained in:
Reid 2026-04-09 01:49:56 -07:00
parent c0590acdba
commit bb229a4aef
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD

View file

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