diff --git a/m/tent/gitea.nix b/m/tent/gitea.nix index dfbe1229..56333a84 100644 --- a/m/tent/gitea.nix +++ b/m/tent/gitea.nix @@ -29,15 +29,15 @@ dump = { enable = false; # Do not enable NixOS module, use our custom systemd script below - backupDir = "/vault/gitea"; + backupDir = "/vault/backup/gitea"; }; }; - systemd.services.gitea-dump-rotating = let + systemd.services.gitea-backup = let cfg = config.services.gitea; exe = lib.getExe cfg.package; in { - description = "gitea dump rotation"; + description = "Gitea daily backup"; after = [ "gitea.service" ]; path = [ cfg.package ]; @@ -61,9 +61,9 @@ ''; }; - systemd.timers.gitea-dump-rotating = { - description = "Update timer for gitea-dump-rotating"; - partOf = [ "gitea-dump-rotating.service" ]; + systemd.timers.gitea-backup = { + description = "Update timer for gitea-backup"; + partOf = [ "gitea-backup.service" ]; wantedBy = [ "timers.target" ]; timerConfig.OnCalendar = config.services.gitea.dump.interval; };