This commit is contained in:
mjallen18
2025-11-14 10:47:49 -06:00
parent 582561ae12
commit 0e93ea159f
7 changed files with 504 additions and 257 deletions

View File

@@ -28,6 +28,7 @@
ensureDatabases = [
"authentik"
"homeassistant"
"nextcloud"
];
ensureUsers = [
{
@@ -38,12 +39,19 @@
name = "homeassistant";
ensureDBOwnership = true;
}
{
name = "nextcloud";
ensureDBOwnership = true;
}
];
# Allow access via pg_hba.conf rules:
authentication = pkgs.lib.mkOverride 50 ''
# TYPE DATABASE USER ADDRESS METHOD
local all all trust
host homeassistant homeassistant 10.0.1.0/24 trust
local nextcloud nextcloud trust
host nextcloud nextcloud 10.0.1.0/24 trust
host nextcloud nextcloud ::1/128 trust
'';
};