From 143683ed2da5f537a7586b7263e648403b18ed17 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 3 Jan 2022 23:47:55 +0100 Subject: Add cron job to clean up stuff; fix genpki --- site/neptune.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'site') diff --git a/site/neptune.nix b/site/neptune.nix index 781e512..f7517c2 100644 --- a/site/neptune.nix +++ b/site/neptune.nix @@ -9,4 +9,12 @@ services.nomad.settings.datacenter = "neptune"; networking.firewall.allowedTCPPorts = [ 80 443 ]; + + services.cron = { + enable = true; + systemCronJobs = [ + "0 2 * * * ${config.system.path}/bin/nix-collect-garbage --delete-older-than 10d" + "30 2 * * * ${config.system.path}/bin/docker run --rm -it -v /var/lib/drone/nix:/nix nixpkgs/nix:nixos-21.05 nix-collect-garbage --delete-older-than 10d" + ]; + }; } -- cgit v1.2.3