feat: added postgresql

This commit is contained in:
Ranomier 2025-05-09 22:08:43 +02:00
parent 6922232ec5
commit 9320bd758a
4 changed files with 43 additions and 19 deletions

View file

@ -0,0 +1,18 @@
{pkgs, ...}: {
config.services.postgresql = {
enable = true;
authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser auth-method
local all all trust
'';
ensureDatabases = ["luanti_world"];
ensureUsers = [
{
name = "luanti_world";
ensureDBOwnership = true;
}
];
};
}