ops/nixos: run nix-collect-garbage daily, except on clients
This commit is contained in:
parent
4466be3776
commit
e3f83ad608
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue