nixos/ifstate: remove netns so ifstate can identify interface

This test has never worked because when 'identify' is not configured,
ifstate searches for an interface with the specified name inside the
defined network namespace. However, virtualisation.interfaces cannot
place an interface into a specific network namespace, and without
identifying details (such as a MAC address or bus ID), ifstate is
unable to locate the correct interface.

Removing the network namespace avoids this problem.
This commit is contained in:
Nico Felbinger
2025-11-24 16:57:10 +01:00
parent 49c2e65881
commit eade8e0bcd
+7 -8
View File
@@ -10,20 +10,19 @@ let
{
enable = true;
settings = {
namespaces.outside.interfaces.eth1 = {
addresses = [ "2001:0db8:a::${builtins.toString id}/64" ];
link = {
state = "up";
kind = "physical";
};
};
interfaces = {
eth1 = {
addresses = [ "2001:0db8:a::${builtins.toString id}/64" ];
link = {
state = "up";
kind = "physical";
};
};
wg0 = {
addresses = [ "2001:0db8:b::${builtins.toString id}/64" ];
link = {
state = "up";
kind = "wireguard";
bind_netns = "outside";
};
wireguard = {
private_key = "!include ${pkgs.writeText "wg_priv.key" wgPriv}";