aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-01-03 23:56:07 +0100
committerAlex Auvolat <alex@adnab.me>2022-01-03 23:56:07 +0100
commit45c09ff536006fe713e2e08c23d634c641f19428 (patch)
tree92e582f8eeabb0aa81bb5b46bf5de39a8648c3d3
parent143683ed2da5f537a7586b7263e648403b18ed17 (diff)
downloadnixcfg-45c09ff536006fe713e2e08c23d634c641f19428.tar.gz
nixcfg-45c09ff536006fe713e2e08c23d634c641f19428.zip
Add logging
-rwxr-xr-xdeploy.sh2
-rw-r--r--site/neptune.nix4
2 files changed, 3 insertions, 3 deletions
diff --git a/deploy.sh b/deploy.sh
index a30b8c6..ffe1087 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -2,7 +2,7 @@
cd $(dirname $0)
-if [ -z "$@" ]; then
+if [ -z "$1" ]; then
NIXHOSTLIST=$(ls node | grep -v '\.site\.')
else
NIXHOSTLIST="$@"
diff --git a/site/neptune.nix b/site/neptune.nix
index f7517c2..b29442c 100644
--- a/site/neptune.nix
+++ b/site/neptune.nix
@@ -13,8 +13,8 @@
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"
+ "0 2 * * * ${config.system.path}/bin/nix-collect-garbage --delete-older-than 10d >> /root/nix_gc_log 2>&1"
+ "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 >> /root/drone_nix_gc_log 2>&1"
];
};
}