From 46b7efb5aca39a1f1555d9bc1b17388a49d24546 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 5 Mar 2026 15:46:30 +0100 Subject: [PATCH] Rename Gitea backup service and directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Aleix Boné --- m/tent/gitea.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/m/tent/gitea.nix b/m/tent/gitea.nix index dfbe1229e..56333a847 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; };