From b1065f61d9d0fc887073661eb063f88699695d27 Mon Sep 17 00:00:00 2001 From: "Giulio De Pasquale (aider)" Date: Sat, 26 Apr 2025 17:11:22 +0100 Subject: [PATCH] refactor: use interface CIDR ranges instead of network groups in vhost.nix --- modules/core/vhost.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/vhost.nix b/modules/core/vhost.nix index f6412ce..9d26a23 100644 --- a/modules/core/vhost.nix +++ b/modules/core/vhost.nix @@ -99,8 +99,8 @@ in recommendedProxySettings = location.recommendedProxySettings; extraConfig = '' ${concatMapStringsSep "\n" (allowCIDR: "allow ${allowCIDR};") location.allow} - ${optionalString location.allowLAN ''allow ${config.pepe.core.network.groups.lan};''} - ${optionalString location.allowVPN ''allow ${config.pepe.core.network.groups.vpn};''} + ${optionalString location.allowLAN ''allow ${config.pepe.core.network.interfaces.${config.pepe.core.network.interfaceTypes.lan}.net};''} + ${optionalString location.allowVPN ''allow ${config.pepe.core.network.interfaces.${config.pepe.core.network.interfaceTypes.vpn}.net};''} ${optionalString (!location.allowWAN) "deny all;"} '' + location.extraConfig; })