diff --git a/module.nix b/module.nix index 84bcf7d..41a3817 100644 --- a/module.nix +++ b/module.nix @@ -52,6 +52,7 @@ in { if ${pkgs.curl}/bin/curl http://localhost:${toString cfg.listenPort}/visits > visits-new.json; then cp visits-new.json "$(date +"%Y-%m-%d-%H-%M").json" mv visits-new.json visits.json + ${pkgs.findutils}/bin/find . -ctime +10 -delete fi ''; serviceConfig = {