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.
This commit is contained in:
Dominik Xaver Hörl 2020-12-03 09:04:39 +01:00
parent 29f1edf2f3
commit 713b60460f

View File

@ -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" ];
};