diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-09-23 11:38:31 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-09-23 11:38:31 +0200 |
commit | 330bb9cea0e1826ca0bdd5ae999e2ec40cb83669 (patch) | |
tree | 4ee98d2b5cf6848bb7889da03c77795706363b1b /modules | |
parent | d534eb0eb3a32abc7280d4bd94b12621c0023125 (diff) | |
download | nixos-330bb9cea0e1826ca0bdd5ae999e2ec40cb83669.tar nixos-330bb9cea0e1826ca0bdd5ae999e2ec40cb83669.tar.gz nixos-330bb9cea0e1826ca0bdd5ae999e2ec40cb83669.tar.bz2 nixos-330bb9cea0e1826ca0bdd5ae999e2ec40cb83669.tar.xz nixos-330bb9cea0e1826ca0bdd5ae999e2ec40cb83669.zip |
...
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pgbackrest.nix | 3 |
1 files changed, 1 insertions, 2 deletions
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 { | |||
143 | environment.systemPackages = [ cfg.package ]; | 143 | environment.systemPackages = [ cfg.package ]; |
144 | 144 | ||
145 | services.postgresql.settings = mkIf cfg.configurePostgresql.enable { | 145 | services.postgresql.settings = mkIf cfg.configurePostgresql.enable { |
146 | archive_command = "pgbackrest --stanza ${escapeSystemdExecArg cfg.configurePostgresql.stanza} archive-push %p"; | 146 | archive_command = "${cfg.package}/bin/pgbackrest --stanza ${escapeSystemdExecArg cfg.configurePostgresql.stanza} archive-push %p"; |
147 | archive_mode = true; | 147 | archive_mode = true; |
148 | max_wal_senders = mkDefault 3; | 148 | max_wal_senders = mkDefault 3; |
149 | wal_level = "replica"; | 149 | wal_level = "replica"; |
150 | }; | 150 | }; |
151 | 151 | ||
152 | systemd.services = { | 152 | systemd.services = { |
153 | postgresql.path = mkIf cfg.configurePostgresql.enable [ cfg.package ]; | ||
154 | pgbackrest-tls-server = mkIf cfg.tlsServer.enable { | 153 | pgbackrest-tls-server = mkIf cfg.tlsServer.enable { |
155 | description = "pgBackRest TLS-Server"; | 154 | description = "pgBackRest TLS-Server"; |
156 | wantedBy = [ "multi-user.target" ]; | 155 | wantedBy = [ "multi-user.target" ]; |