build02/nixpkgs-update: fix nixpkgs-update-delete-old-logs service

This commit is contained in:
zowoq 2024-02-04 21:04:34 +10:00
parent 9e026e0366
commit 447c09ed4b

View file

@ -235,7 +235,7 @@ in
systemd.services.nixpkgs-update-delete-old-logs = {
startAt = "weekly";
# delete logs older than 18 months, delete empty directories
serviceConfig.script = ''
script = ''
${pkgs.findutils}/bin/find /var/log/nixpkgs-update -type f -mtime +548 -delete
${pkgs.findutils}/bin/find /var/log/nixpkgs-update -type d -empty -delete
'';