ops/nixos: run nix-collect-garbage daily, except on clients

This commit is contained in:
Luke Granger-Brown 2020-10-18 01:17:35 +00:00
parent 4466be3776
commit e3f83ad608
2 changed files with 8 additions and 0 deletions

View file

@ -7,6 +7,8 @@ let
inherit (lib) mkBefore;
in
{
nix.gc.automatic = false;
users.users.lukegb.packages = mkBefore (with pkgs; [
depot.nix.pkgs.copybara
direnv

View file

@ -82,4 +82,10 @@ in
system.activationScripts.lukegb-hgrc = lib.stringAfter [ "users" "groups" ] ''
ln -sfn ${./hgrc} /home/lukegb/.hgrc
'';
# Clean up daily.
nix.gc = {
automatic = true;
dates = "*-*-* 05:00:00";
};
}