dataDir must be absolute path
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
dataDir = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
default = "var/lib/postgresql";
|
||||
default = "/var/lib/postgresql";
|
||||
description = "Where to store database data";
|
||||
};
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ in
|
||||
# Postgresql/postgrest for text storage
|
||||
services.postgresql-db = {
|
||||
enable = true;
|
||||
dataDir = "var/lib/postgresql";
|
||||
dataDir = "/var/lib/postgresql";
|
||||
port = 5432;
|
||||
credentialsFile = config.sops.secrets."postgresql-credentials".path;
|
||||
databases = [ "rdblog" ];
|
||||
|
||||
Reference in New Issue
Block a user