Add logging
This commit is contained in:
parent
143683ed2d
commit
45c09ff536
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
cd $(dirname $0)
|
||||
|
||||
if [ -z "$@" ]; then
|
||||
if [ -z "$1" ]; then
|
||||
NIXHOSTLIST=$(ls node | grep -v '\.site\.')
|
||||
else
|
||||
NIXHOSTLIST="$@"
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue