initial attempt at using postgres new module

This commit is contained in:
2025-11-15 23:46:57 -06:00
parent 8ca22db877
commit 0e012e6093
4 changed files with 157 additions and 1 deletions
+13
View File
@@ -47,6 +47,12 @@ in
key = "credentials";
format = "yaml";
};
"postgresql-credentials" = {
sopsFile = ./secrets/psql.yaml;
key = "credentials";
format = "yaml";
};
};
};
@@ -145,6 +151,13 @@ in
# Minio for backend storage
# Postgresql/postgrest for text storage
services.postgresql-db = {
enable = true;
dataDir = "var/lib/postgresql";
port = 5432;
credentialsFile = config.sops.secrets."postgresql-credentials".path;
databases = [ "rdblog" ];
};
# Fullstack sourcecode