diff --git a/hosts/cirrostratus/restic.nix b/hosts/cirrostratus/restic.nix index 8710671..ec4c372 100644 --- a/hosts/cirrostratus/restic.nix +++ b/hosts/cirrostratus/restic.nix @@ -42,14 +42,21 @@ in { ]; services.restic.backups = lib.mkIf (inputs ? nix-secrets) { - remote = { - repositoryFile = config.sops.secrets.restic-url.path; + local = { + repositoryFile = "/backup/restic/"; passwordFile = config.sops.secrets.restic-password.path; initialize = true; paths = [ "/storage/syncthing" "/storage/factorio" ]; + pruneOpts=[ + "--keep-within 14d" + "--keep-daily 14" + "--keep-weekly 8" + "--keep-monthly 12" + "--keep-yearly 10" + ]; timerConfig = { OnCalendar = "daily"; Persistent = true;