added gitea to postgress.nix

This commit is contained in:
2025-12-20 12:21:34 -05:00
parent e339667c2b
commit 90e5e0855d

View File

@@ -28,13 +28,7 @@ in
#type database DBuser origin-address auth-method
local hass hass trust
# ipv4
host hass hass 192.168.90.1/24 trust
host hass hass 127.0.0.1/32 trust
# ipv6
host hass hass ::1/128 trust
local gitea gitea trust
# megan
host megan megan 192.168.90.1/24 trust
@@ -96,6 +90,16 @@ in
replication = true;
};
}
{
name = "gitea";
ensureDBOwnership = true;
ensureClauses = {
login = true;
createrole = true;
createdb = true;
replication = true;
};
}
{
name = "megan";
ensureDBOwnership = true;
@@ -130,6 +134,7 @@ in
ensureDatabases = [
"gcw"
"hass"
"gitea"
"math"
"megan"
"mxr_dev"