From 501a838be986d245131aaa82d7ae90e6fc4879ec Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Sun, 17 Aug 2025 08:11:22 -0400 Subject: [PATCH] updated matts user --- systems/jeeves/default.nix | 1 + systems/jeeves/services/postgress.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) 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"