From 38ece9125b5f40d94c719a45fcb2aeda3fc7c143 Mon Sep 17 00:00:00 2001 From: Yuri Tatishchev Date: Thu, 22 May 2025 00:28:41 -0700 Subject: [PATCH] WIP: router: wireguard: someone forgot to add the network config for the wireguard interface --- hosts/router/wireguard.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/router/wireguard.nix b/hosts/router/wireguard.nix index 986b36f..82dbe5a 100644 --- a/hosts/router/wireguard.nix +++ b/hosts/router/wireguard.nix @@ -53,4 +53,15 @@ in }]) [] wg0Peers; }; }; + + systemd.network.networks = { + "10-wg0" = { + matchConfig.Name = "wg0"; + networkConfig = { + IPv4Forwarding = true; + IPv6SendRA = false; + Address = [ "10.6.0.1/24" "${vars.extra.opnsense.p6}::6:0:1/96" ]; + }; + }; + }; }