diff options
author | Dominik Xaver Hörl <hoe.dom@gmx.de> | 2020-12-03 09:04:39 +0100 |
---|---|---|
committer | Dominik Xaver Hörl <hoe.dom@gmx.de> | 2021-01-09 10:26:57 +0100 |
commit | 713b60460fb502651ec1b9f6c92d34ad448346a7 (patch) | |
tree | fc1b57bfe954ce872507cabac3797b7a77d4b027 /nixos | |
parent | 29f1edf2f388947305471e840b42f1683b31d559 (diff) |
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.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/iwd.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/iwd.nix b/nixos/modules/services/networking/iwd.nix index 6be67a8b96f4..99e5e78badd2 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" ]; }; |