diff --git a/systems/jeeves/default.nix b/systems/jeeves/default.nix index 28b0328..1af18d1 100644 --- a/systems/jeeves/default.nix +++ b/systems/jeeves/default.nix @@ -1,6 +1,7 @@ { imports = [ ../../users/richie + ../../users/math ../../common/global ../../common/optional/docker.nix ../../common/optional/ssh_decrypt.nix diff --git a/systems/jeeves/services/postgress.nix b/systems/jeeves/services/postgress.nix index 1f4e8c5..a71b2f6 100644 --- a/systems/jeeves/services/postgress.nix +++ b/systems/jeeves/services/postgress.nix @@ -48,6 +48,12 @@ in host gcw gcw 192.168.90.1/24 trust host gcw gcw 127.0.0.1/32 trust + # math + local postgres math trust + host postgres math 127.0.0.1/32 trust + host postgres math ::1/128 trust + host postgres math 192.168.90.1/24 trust + ''; identMap = '' @@ -110,8 +116,19 @@ in replication = true; }; } + { + name = "math"; + ensureDBOwnership = true; + ensureClauses = { + login = true; + createrole = true; + createdb = true; + replication = true; + }; + } ]; ensureDatabases = [ + "math" "gcw" "hass" "megan"