nixos/postgresql: conditionally provision data directory with StateDirectory

This commit is contained in:
Aaron Andersen
2020-08-05 17:31:16 -04:00
parent 4f5fc729c7
commit e50e89e1a8
2 changed files with 17 additions and 11 deletions
+4
View File
@@ -28,6 +28,10 @@ let
meta.maintainers = with maintainers; [ pacien ];
machine = { ... }: {
# Needed because this test uses a non-default 'services.postgresql.dataDir'.
systemd.tmpfiles.rules = [
"d /var/db/postgresql 0700 postgres postgres"
];
services.postgresql = {
package = postgresqlPackage;
enable = true;