From 5f356a2e1a3639511078bc08e6f39996c8ec4650 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Sat, 13 Apr 2024 15:51:41 -0700 Subject: [PATCH] chore(postgresql): avoid deprecated setting --- modules/nixos/postgres.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nixos/postgres.nix b/modules/nixos/postgres.nix index 86eecc1c..ee25fe56 100644 --- a/modules/nixos/postgres.nix +++ b/modules/nixos/postgres.nix @@ -91,10 +91,10 @@ in { }; config.networking.firewall.interfaces = { local = mkIf cfg.enable { - allowedTCPPorts = mkIf (any (user: user.authentication.local.allow) cfg.ensureUsers) [cfg.port]; + allowedTCPPorts = mkIf (any (user: user.authentication.local.allow) cfg.ensureUsers) [cfg.settings.port]; }; int = mkIf cfg.enable { - allowedTCPPorts = mkIf (any (user: user.authentication.int.allow) cfg.ensureUsers) [cfg.port]; + allowedTCPPorts = mkIf (any (user: user.authentication.int.allow) cfg.ensureUsers) [cfg.settings.port]; }; }; }