From 6238a1d00dd02fffb9afa576bbb71056a92c54b5 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Tue, 2 Dec 2025 12:12:15 +0100 Subject: [PATCH] nixos/networking: fix wlanInterfaces udev rule For some reason, starting with systemd v258, the INTERFACE property is now protected but ID_NET_NAME can be set instead. --- nixos/modules/tasks/network-interfaces.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix index a88eb8b0ca64..2a6d00296303 100644 --- a/nixos/modules/tasks/network-interfaces.nix +++ b/nixos/modules/tasks/network-interfaces.nix @@ -1926,7 +1926,7 @@ in # Udev attributes for systemd to name the device and to create a .device target. systemdAttrs = n: - ''NAME:="${n}", ENV{INTERFACE}="${n}", ENV{SYSTEMD_ALIAS}="/sys/subsystem/net/devices/${n}", TAG+="systemd"''; + ''NAME:="${n}", ENV{ID_NET_NAME}="${n}", ENV{SYSTEMD_ALIAS}="/sys/subsystem/net/devices/${n}", TAG+="systemd"''; in flip (concatMapStringsSep "\n") (attrNames wlanDeviceInterfaces) ( device: