aboutsummaryrefslogtreecommitdiff
path: root/modules/services/gitea/default.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-10 13:24:12 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-10 13:25:48 -0700
commitfad740947d826c1c04c5162fb57a06ec64b7a449 (patch)
tree5b4946ffcbbac68d8462cd53e263e09aeb65640c /modules/services/gitea/default.nix
parenttahoe: enable network with early boot (diff)
downloadinfra-fad740947d826c1c04c5162fb57a06ec64b7a449.tar.gz
add a module for backup with restic
Do a single backup for the host, instead of running multiple ones.
Diffstat (limited to 'modules/services/gitea/default.nix')
-rw-r--r--modules/services/gitea/default.nix12
1 files changed, 1 insertions, 11 deletions
diff --git a/modules/services/gitea/default.nix b/modules/services/gitea/default.nix
index 47abd55..d232001 100644
--- a/modules/services/gitea/default.nix
+++ b/modules/services/gitea/default.nix
@@ -37,16 +37,6 @@ in {
};
};
- services.restic.backups = {
- gitea = {
- paths = [ cfg.stateDir ];
- repository = "/data/slow/backups/systems";
- passwordFile = config.age.secrets.restic-repo-systems.path;
- timerConfig = { OnCalendar = "00:15"; };
- initialize = true;
- extraBackupArgs = [ "--tag gitea" ];
- pruneOpts = [ "--keep-daily 7" "--keep-weekly 4 --keep-monthly 6" ];
- };
- };
+ my.services.backup = { paths = [ cfg.stateDir ]; };
};
}