From f04596b752634887c5d13e2bdae862b7123dd1f6 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 22 Dec 2025 10:13:37 +0900 Subject: [PATCH] bicep/postgres: allow connections from ildkule --- hosts/bicep/services/postgres.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/bicep/services/postgres.nix b/hosts/bicep/services/postgres.nix index 516af7d..43e6108 100644 --- a/hosts/bicep/services/postgres.nix +++ b/hosts/bicep/services/postgres.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, values, ... }: { services.postgresql = { enable = true; @@ -8,8 +8,10 @@ dataDir = "/data/postgresql"; authentication = '' - host all all 129.241.210.128/25 md5 - host all all 2001:700:300:1900::/64 md5 + host all all ${values.ipv4-space} md5 + host all all ${values.ipv6-space} md5 + host all all ${values.hosts.ildkule.ipv4}/32 md5 + host all all ${values.hosts.ildkule.ipv6}/32 md5 ''; # Hilsen https://pgconfigurator.cybertec-postgresql.com/