borgmatic: only add postgres to closure if enabled
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m21s

This commit is contained in:
2025-06-20 16:48:49 +01:00
parent 33cc641030
commit 89fb397639

View File

@ -64,7 +64,8 @@ in
];
# Add `pg_dumpall` to unit environment
systemd.services.borgmatic.path = [ config.services.postgresql.package ];
systemd.services.borgmatic.path =
if config.services.postgresql.enable then [ config.services.postgresql.package ] else [ ];
# Without this override, `cat` is unavailable for `encryption_passcommand`
systemd.services.borgmatic.confinement.fullUnit = true;