From 882c86f368990d46dc25cf897f4d2a70ec5bd558 Mon Sep 17 00:00:00 2001 From: Youko Date: Thu, 21 Oct 2021 12:46:12 -0600 Subject: [PATCH] fix loop on marisa? --- config/profiles/network.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/profiles/network.nix b/config/profiles/network.nix index 8875ed69..d6cbc6fe 100644 --- a/config/profiles/network.nix +++ b/config/profiles/network.nix @@ -27,7 +27,7 @@ networking.firewall.extraCommands = '' ip6tables -A INPUT -p 89 -i wgmesh-+ -j ACCEPT - ip route replace to 10.42.68.0/24 via ${nodes.marisa.network.addresses.yggdrasil.nixos.ipv4.address} + ${if config.networking.hostName != "marisa" then "ip route replace to 10.42.68.0/24 via ${nodes.marisa.network.addresses.yggdrasil.nixos.ipv4.address}" else ""} ''; networking.nftables.extraInput = '' meta l4proto 89 iifname wgmesh-* accept