diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-09-23 16:14:29 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-09-23 16:14:29 +0200 |
commit | cb118fd08ceac4607bd53298810c5685220f5faf (patch) | |
tree | 3c764e1215ccde8325008277d9a097a3dd896df2 | |
parent | 3832bf5daed8b4a3fc87153590131730daa4e88c (diff) | |
download | nixos-cb118fd08ceac4607bd53298810c5685220f5faf.tar nixos-cb118fd08ceac4607bd53298810c5685220f5faf.tar.gz nixos-cb118fd08ceac4607bd53298810c5685220f5faf.tar.bz2 nixos-cb118fd08ceac4607bd53298810c5685220f5faf.tar.xz nixos-cb118fd08ceac4607bd53298810c5685220f5faf.zip |
...
-rw-r--r-- | modules/pgbackrest.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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 { | |||
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 = "${cfg.package}/bin/pgbackrest --stanza ${escapeSystemdExecArg cfg.configurePostgresql.stanza} archive-push %p"; | 146 | archive_command = "pgbackrest --stanza ${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 ]; | ||
153 | pgbackrest-tls-server = mkIf cfg.tlsServer.enable { | 154 | pgbackrest-tls-server = mkIf cfg.tlsServer.enable { |
154 | description = "pgBackRest TLS-Server"; | 155 | description = "pgBackRest TLS-Server"; |
155 | wantedBy = [ "multi-user.target" ]; | 156 | wantedBy = [ "multi-user.target" ]; |