diff --git a/modules/services/borgmatic/default.nix b/modules/services/borgmatic/default.nix index 309b852..7b44817 100644 --- a/modules/services/borgmatic/default.nix +++ b/modules/services/borgmatic/default.nix @@ -45,8 +45,15 @@ in { }; }; + services.postgresql.ensureUsers = [ + { + name = "root"; + ensureClauses.superuser = true; + } + ]; + # Add `pg_dumpall` to unit environment - systemd.services.borgmatic.path = [ pkgs.postgresql ]; + systemd.services.borgmatic.path = [ config.services.postgresql.package ]; # Without this override, `cat` is unavailable for `encryption_passcommand` systemd.services.borgmatic.confinement.fullUnit = true;