From 9cf30613f459e53e5ab90b5e16ad6a8a4fa0284c Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Mon, 16 Jun 2025 20:35:07 +0100 Subject: [PATCH] yevaud: Disable networkd Just so much more trouble than it's worth - NixOS containers are really not designed to work with it --- hosts/yevaud/experiments/pennykettle.nix | 12 ------------ hosts/yevaud/networking.nix | 1 - 2 files changed, 13 deletions(-) diff --git a/hosts/yevaud/experiments/pennykettle.nix b/hosts/yevaud/experiments/pennykettle.nix index 883c458..cf705e8 100644 --- a/hosts/yevaud/experiments/pennykettle.nix +++ b/hosts/yevaud/experiments/pennykettle.nix @@ -14,18 +14,6 @@ ]; networking.firewall.allowedUDPPorts = [ 51821 ]; - # RA = Router Advertisement (how a host finds a gateway IPv6 address for - # SLAAC or DHCPv6). - # networkd usually defaults this to true, but instead defaults it to false - # for ALL networks if ANY network has IPv6Forwarding enabled, on the - # (reasonable) assumption that a host doing IP forwarding is probably a - # network bridge. - # The kernel's RA implementation does this too, and the NixOS networking.nat - # module explicitly overrides that with sysctl, but networkd doesn't pay - # attention to that. - # We thus explicitly enable it, as otherwise external IPv6 is broken. - systemd.network.networks."40-ens3".networkConfig.IPv6AcceptRA = true; - containers."pennykettle1" = { privateNetwork = true; extraVeths."ve-pennykettle1" = { diff --git a/hosts/yevaud/networking.nix b/hosts/yevaud/networking.nix index 9423165..d54ca7f 100644 --- a/hosts/yevaud/networking.nix +++ b/hosts/yevaud/networking.nix @@ -1,6 +1,5 @@ { config, lib, pkgs, ... }: { - networking.useNetworkd = true; networking.interfaces.ens3.useDHCP = true; }