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, ... }:
|
{ 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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue