diff options
Diffstat (limited to 'hosts/vidhar/pgbackrest/default.nix')
-rw-r--r-- | hosts/vidhar/pgbackrest/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hosts/vidhar/pgbackrest/default.nix b/hosts/vidhar/pgbackrest/default.nix index ffb149f5..1e0828ce 100644 --- a/hosts/vidhar/pgbackrest/default.nix +++ b/hosts/vidhar/pgbackrest/default.nix | |||
@@ -130,8 +130,9 @@ in { | |||
130 | }; | 130 | }; |
131 | 131 | ||
132 | systemd.tmpfiles.rules = [ | 132 | systemd.tmpfiles.rules = [ |
133 | "d /var/lib/pgbackrest 0750 pgbackrest pgbackrest - -" | 133 | "d /var/lib/pgbackrest 0770 pgbackrest pgbackrest - -" |
134 | "d /var/spool/pgbackrest 0750 pgbackrest pgbackrest - -" | 134 | "d /var/spool/pgbackrest 0770 pgbackrest pgbackrest - -" |
135 | "d /tmp/pgbackrest 0770 pgbackrest pgbackrest - -" | ||
135 | ]; | 136 | ]; |
136 | 137 | ||
137 | users = { | 138 | users = { |
@@ -141,7 +142,9 @@ in { | |||
141 | isSystemUser = true; | 142 | isSystemUser = true; |
142 | home = "/var/lib/pgbackrest"; | 143 | home = "/var/lib/pgbackrest"; |
143 | }; | 144 | }; |
144 | groups.pgbackrest = {}; | 145 | groups.pgbackrest = { |
146 | members = [ "postgres" ]; | ||
147 | }; | ||
145 | }; | 148 | }; |
146 | 149 | ||
147 | systemd.services."pgbackrest-tls-server".serviceConfig = { | 150 | systemd.services."pgbackrest-tls-server".serviceConfig = { |