updated matts user

This commit is contained in:
2025-08-17 08:11:22 -04:00
parent 2325249687
commit 501a838be9
2 changed files with 18 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
{ {
imports = [ imports = [
../../users/richie ../../users/richie
../../users/math
../../common/global ../../common/global
../../common/optional/docker.nix ../../common/optional/docker.nix
../../common/optional/ssh_decrypt.nix ../../common/optional/ssh_decrypt.nix

View File

@@ -48,6 +48,12 @@ in
host gcw gcw 192.168.90.1/24 trust host gcw gcw 192.168.90.1/24 trust
host gcw gcw 127.0.0.1/32 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 = '' identMap = ''
@@ -110,8 +116,19 @@ in
replication = true; replication = true;
}; };
} }
{
name = "math";
ensureDBOwnership = true;
ensureClauses = {
login = true;
createrole = true;
createdb = true;
replication = true;
};
}
]; ];
ensureDatabases = [ ensureDatabases = [
"math"
"gcw" "gcw"
"hass" "hass"
"megan" "megan"