From 713b60460fb502651ec1b9f6c92d34ad448346a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Xaver=20H=C3=B6rl?= Date: Thu, 3 Dec 2020 09:04:39 +0100 Subject: [PATCH 1/2] nixos/iwd: add networkd link configuration matching the upstream .link unit file It is meant to fix the race condition between iwd and udev trying to rename the interface. --- nixos/modules/services/networking/iwd.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/services/networking/iwd.nix b/nixos/modules/services/networking/iwd.nix index 6be67a8b96f..99e5e78badd 100644 --- a/nixos/modules/services/networking/iwd.nix +++ b/nixos/modules/services/networking/iwd.nix @@ -22,6 +22,11 @@ in { systemd.packages = [ pkgs.iwd ]; + systemd.network.links."80-iwd" = { + matchConfig.Type = "wlan"; + linkConfig.NamePolicy = "keep kernel"; + }; + systemd.services.iwd.wantedBy = [ "multi-user.target" ]; }; From 86b3251c8024cc61cdc6f57cf0b3b60480358a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Xaver=20H=C3=B6rl?= Date: Sat, 9 Jan 2021 10:55:41 +0100 Subject: [PATCH 2/2] nixos/iwd: add release notes for changes to wireless interface renaming --- nixos/doc/manual/release-notes/rl-2103.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2103.xml b/nixos/doc/manual/release-notes/rl-2103.xml index 3186eb7449f..62cb1b3e039 100644 --- a/nixos/doc/manual/release-notes/rl-2103.xml +++ b/nixos/doc/manual/release-notes/rl-2103.xml @@ -94,6 +94,15 @@ user D-Bus session available also for non-graphical logins. + + + The networking.wireless.iwd module now installs + the upstream-provided 80-iwd.link file, which sets the NamePolicy= + for all wlan devices to "keep kernel", to avoid race conditions + between iwd and networkd. If you don't want this, you can set + systemd.network.links."80-iwd" = lib.mkForce {}. + + rubyMinimal was removed due to being unused and