dataDir must be absolute path
This commit is contained in:
@@ -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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user