dataDir must be absolute path

This commit is contained in:
2025-11-16 00:07:49 -06:00
parent 3535a4b964
commit 7b27d46db8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
dataDir = lib.mkOption { dataDir = lib.mkOption {
type = lib.types.path; type = lib.types.path;
default = "var/lib/postgresql"; default = "/var/lib/postgresql";
description = "Where to store database data"; description = "Where to store database data";
}; };
+1 -1
View File
@@ -153,7 +153,7 @@ in
# Postgresql/postgrest for text storage # Postgresql/postgrest for text storage
services.postgresql-db = { services.postgresql-db = {
enable = true; enable = true;
dataDir = "var/lib/postgresql"; dataDir = "/var/lib/postgresql";
port = 5432; port = 5432;
credentialsFile = config.sops.secrets."postgresql-credentials".path; credentialsFile = config.sops.secrets."postgresql-credentials".path;
databases = [ "rdblog" ]; databases = [ "rdblog" ];