diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-03 20:18:18 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-03 20:18:18 +0100 |
commit | 31bd460c5e4c41f9d383d867649d70cf7376919f (patch) | |
tree | fd2e07addde7042dd47e48d595a15e1aee3c68fd /hosts/vidhar | |
parent | d650b72c0f71142426106db4dd71b2e7c7c413a5 (diff) | |
download | nixos-31bd460c5e4c41f9d383d867649d70cf7376919f.tar nixos-31bd460c5e4c41f9d383d867649d70cf7376919f.tar.gz nixos-31bd460c5e4c41f9d383d867649d70cf7376919f.tar.bz2 nixos-31bd460c5e4c41f9d383d867649d70cf7376919f.tar.xz nixos-31bd460c5e4c41f9d383d867649d70cf7376919f.zip |
...
Diffstat (limited to 'hosts/vidhar')
-rw-r--r-- | hosts/vidhar/pgbackrest/default.nix | 9 | ||||
-rw-r--r-- | hosts/vidhar/postgresql.nix | 4 |
2 files changed, 10 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 = { |
diff --git a/hosts/vidhar/postgresql.nix b/hosts/vidhar/postgresql.nix index fa5b734f..7e44e69f 100644 --- a/hosts/vidhar/postgresql.nix +++ b/hosts/vidhar/postgresql.nix | |||
@@ -28,5 +28,9 @@ in { | |||
28 | timerConfig.OnCalendar = "daily"; | 28 | timerConfig.OnCalendar = "daily"; |
29 | }; | 29 | }; |
30 | }; | 30 | }; |
31 | |||
32 | systemd.services.postgresql.serviceConfig = { | ||
33 | ReadWritePaths = [ "/var/spool/pgbackrest" "/var/lib/pgbackrest/archive/vidhar" ]; | ||
34 | }; | ||
31 | }; | 35 | }; |
32 | } | 36 | } |