forgejo/module.nix: add dumping

This commit is contained in:
Bloxx12 2025-04-09 15:31:18 +02:00
commit 2a3c4899fb

View file

@ -16,6 +16,7 @@
img = ./img; img = ./img;
acmeRoot = "/var/lib/acme/challenges-forgejo"; acmeRoot = "/var/lib/acme/challenges-forgejo";
dataDir = "/srv/data/forgejo"; dataDir = "/srv/data/forgejo";
dumpDir = "/srv/data/forgejo-dump";
in { in {
options.modules.system.services.forgejo.enable = mkEnableOption "forgejo"; options.modules.system.services.forgejo.enable = mkEnableOption "forgejo";
@ -119,6 +120,13 @@ in {
SIGNING_KEY = "none"; SIGNING_KEY = "none";
}; };
}; };
dump = {
enable = true;
backupDir = dumpDir;
interval = "06:00";
type = "tar.xz";
};
}; };
systemd.tmpfiles.rules = let systemd.tmpfiles.rules = let