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:
parent
29f1edf2f3
commit
713b60460f
1 changed files with 5 additions and 0 deletions
|
@ -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" ];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue