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, ... }:
{
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;