diff --git a/nix-system-configs/modules/system/database.nix b/nix-system-configs/modules/system/database.nix index 3d75fc1..78d2656 100644 --- a/nix-system-configs/modules/system/database.nix +++ b/nix-system-configs/modules/system/database.nix @@ -81,6 +81,7 @@ in { local all all trust host all all 10.1.1.4/32 scram-sha-256 host all all 10.1.1.249/32 scram-sha-256 + host all all 10.1.1.244/32 scram-sha-256 host all all 127.0.0.1/32 trust host all all ::1/128 trust ''; @@ -115,3 +116,11 @@ in { system.stateVersion = "25.11"; }; } + +sudo -u postgres psql +CREATE DATABASE bluemap; +CREATE USER bluemap WITH PASSWORD 'MTTd35ReP4NQNPT9cI7HIaqSaeQPbndqE5uIWACAYmDKcvstmo'; +GRANT ALL PRIVILEGES ON DATABASE bluemap TO bluemap; +\q +# For Postgres you may need to allow remote connections and adjust pg_hba.conf +