From cb118fd08ceac4607bd53298810c5685220f5faf Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 23 Sep 2023 16:14:29 +0200 Subject: ... --- modules/pgbackrest.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/pgbackrest.nix b/modules/pgbackrest.nix index 493ba4c5..d4a4f9d6 100644 --- a/modules/pgbackrest.nix +++ b/modules/pgbackrest.nix @@ -143,13 +143,14 @@ in { environment.systemPackages = [ cfg.package ]; services.postgresql.settings = mkIf cfg.configurePostgresql.enable { - archive_command = "${cfg.package}/bin/pgbackrest --stanza ${escapeSystemdExecArg cfg.configurePostgresql.stanza} archive-push %p"; + archive_command = "pgbackrest --stanza ${cfg.configurePostgresql.stanza} archive-push %p"; archive_mode = true; max_wal_senders = mkDefault 3; wal_level = "replica"; }; systemd.services = { + postgresql.path = mkIf cfg.configurePostgresql.enable [ cfg.package ]; pgbackrest-tls-server = mkIf cfg.tlsServer.enable { description = "pgBackRest TLS-Server"; wantedBy = [ "multi-user.target" ]; -- cgit v1.2.3