From 330bb9cea0e1826ca0bdd5ae999e2ec40cb83669 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 23 Sep 2023 11:38:31 +0200 Subject: ... --- modules/pgbackrest.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/pgbackrest.nix') diff --git a/modules/pgbackrest.nix b/modules/pgbackrest.nix index 41a7b381..493ba4c5 100644 --- a/modules/pgbackrest.nix +++ b/modules/pgbackrest.nix @@ -143,14 +143,13 @@ in { environment.systemPackages = [ cfg.package ]; services.postgresql.settings = mkIf cfg.configurePostgresql.enable { - archive_command = "pgbackrest --stanza ${escapeSystemdExecArg cfg.configurePostgresql.stanza} archive-push %p"; + archive_command = "${cfg.package}/bin/pgbackrest --stanza ${escapeSystemdExecArg 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