feat(infra): Make the gc run weekly
This commit is contained in:
parent
10a925021f
commit
dd4e2c62aa
1 changed files with 11 additions and 3 deletions
14
hive.nix
14
hive.nix
|
@ -75,9 +75,17 @@ in
|
||||||
# Deployment config is specified in meta.nodes.${node}.deployment
|
# Deployment config is specified in meta.nodes.${node}.deployment
|
||||||
inherit (meta.nodes.${name}) deployment;
|
inherit (meta.nodes.${name}) deployment;
|
||||||
|
|
||||||
# Set NIX_PATH to the patched version of nixpkgs
|
nix = {
|
||||||
nix.nixPath = [ "nixpkgs=${mkNixpkgs' (version name)}" ];
|
# Set NIX_PATH to the patched version of nixpkgs
|
||||||
nix.optimise.automatic = true;
|
nixPath = [ "nixpkgs=${mkNixpkgs' (version name)}" ];
|
||||||
|
optimise.automatic = true;
|
||||||
|
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 7d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
Loading…
Reference in a new issue