From 1ee5b2aa1a6fc24b5973f374622e82f28205ad96 Mon Sep 17 00:00:00 2001 From: oddlama Date: Sat, 26 Apr 2025 16:35:05 +0200 Subject: [PATCH] fix: only set gateway on services vlan --- hosts/sausebiene/net.nix | 2 +- hosts/sire/net.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/sausebiene/net.nix b/hosts/sausebiene/net.nix index 74f4a34..ffd26a2 100644 --- a/hosts/sausebiene/net.nix +++ b/hosts/sausebiene/net.nix @@ -81,7 +81,7 @@ in vlanCfg.hosts.sausebiene.cidrv4 vlanCfg.hosts.sausebiene.cidrv6 ]; - gateway = [ vlanCfg.hosts.ward.ipv4 ]; + gateway = lib.optionals (vlanName == "services") [ vlanCfg.hosts.ward.ipv4 ]; matchConfig.Name = "vlan-${vlanName}"; networkConfig = { IPv6PrivacyExtensions = "yes"; diff --git a/hosts/sire/net.nix b/hosts/sire/net.nix index b28f07e..8be634c 100644 --- a/hosts/sire/net.nix +++ b/hosts/sire/net.nix @@ -108,7 +108,7 @@ in vlanCfg.hosts.sire.cidrv4 vlanCfg.hosts.sire.cidrv6 ]; - gateway = [ vlanCfg.hosts.ward.ipv4 ]; + gateway = lib.optionals (vlanName == "services") [ vlanCfg.hosts.ward.ipv4 ]; matchConfig.Name = "me-${vlanName}"; networkConfig = { IPv6PrivacyExtensions = "yes";