dataDir must be absolute path
This commit is contained in:
1 parent
3535a4b964
commit
7b27d46db8
2 files changed
+2
-2
No files matched your search
@@ -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