From 9577566283e0b58d2836df316f80f03fac2cec79 Mon Sep 17 00:00:00 2001 From: Glowpelt Date: Mon, 25 Oct 2021 01:51:10 -0600 Subject: [PATCH] fix network for hosts other than marisa, whoops Both properly refer to meta config and use wg, which has a v4 address --- config/profiles/network.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/profiles/network.nix b/config/profiles/network.nix index d6cbc6fe..601a7067 100644 --- a/config/profiles/network.nix +++ b/config/profiles/network.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, sources, ... }: with lib; +{ config, lib, pkgs, sources, meta, ... }: with lib; { options.network = with lib; { @@ -27,7 +27,7 @@ networking.firewall.extraCommands = '' ip6tables -A INPUT -p 89 -i wgmesh-+ -j ACCEPT - ${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 ""} + ${if config.networking.hostName != "marisa" then "ip route replace to 10.42.68.0/24 via ${meta.network.nodes.marisa.network.addresses.wireguard.nixos.ipv4.address}" else ""} ''; networking.nftables.extraInput = '' meta l4proto 89 iifname wgmesh-* accept