allow gc on home-manager
This commit is contained in:
parent
c0590acdba
commit
bb229a4aef
1 changed files with 10 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue