diff options
Diffstat (limited to 'sys/services/restic/default.nix')
-rw-r--r-- | sys/services/restic/default.nix | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/sys/services/restic/default.nix b/sys/services/restic/default.nix index 0d02cd4..f79f734 100644 --- a/sys/services/restic/default.nix +++ b/sys/services/restic/default.nix @@ -1,6 +1,24 @@ -{...}: { - services.restic.backups = { - backuphome = { +{config, ...}: { + services.restic.backups = let + homeDir = "/home/sils"; + srvDir = "${homeDir}/srv"; + boxUser = "u384702-sub1"; + in { + storagebox = { + initialize = true; + paths = [ + srvDir + "${homeDir}/schule" + ]; + extraBackupArgs = [ + "--exclude-if-present .nobackup" # Don't backup directory if it contains a file called ".nobackup" + "--verbose" # Spam log + ]; + passwordFile = config.age.secrets.borgpass.path; + extraOptions = [ + "rclone.program='ssh -p 23 ${boxUser}@${boxUser}.your-storagebox.de -i ${config.age.secrets.borgssh.path}'" + ]; + repository = "rclone: "; # There is only one repository served }; }; } |