modules/borgbackup: migrate to clanServices

Migrates the borgbackup module to clanServices, preserving it's original
configuration syntax and functionality
This commit is contained in:
pinpox
2025-05-19 14:40:49 +02:00
parent fde6887754
commit 13a9b17198
23 changed files with 582 additions and 58 deletions

View File

@@ -106,7 +106,8 @@ in
systemd.services = lib.mapAttrs' (
_: dest:
lib.nameValuePair "borgbackup-job-${dest.name}" {
# since borgbackup mounts the system read-only, we need to run in a ExecStartPre script, so we can generate additional files.
# since borgbackup mounts the system read-only, we need to run in a
# ExecStartPre script, so we can generate additional files.
serviceConfig.ExecStartPre = [
''+${pkgs.writeShellScript "borgbackup-job-${dest.name}-pre-backup-commands" preBackupScript}''
];