summary refs log tree commit diff
path: root/nixos/modules/services/networking/iwd.nix
diff options
context:
space:
mode:
authorDominik Xaver Hörl <hoe.dom@gmx.de>2020-12-03 09:04:39 +0100
committerDominik Xaver Hörl <hoe.dom@gmx.de>2021-01-09 10:26:57 +0100
commit713b60460fb502651ec1b9f6c92d34ad448346a7 (patch)
treefc1b57bfe954ce872507cabac3797b7a77d4b027 /nixos/modules/services/networking/iwd.nix
parent29f1edf2f388947305471e840b42f1683b31d559 (diff)
downloadnixpkgs-713b60460fb502651ec1b9f6c92d34ad448346a7.tar
nixpkgs-713b60460fb502651ec1b9f6c92d34ad448346a7.tar.gz
nixpkgs-713b60460fb502651ec1b9f6c92d34ad448346a7.tar.bz2
nixpkgs-713b60460fb502651ec1b9f6c92d34ad448346a7.tar.lz
nixpkgs-713b60460fb502651ec1b9f6c92d34ad448346a7.tar.xz
nixpkgs-713b60460fb502651ec1b9f6c92d34ad448346a7.tar.zst
nixpkgs-713b60460fb502651ec1b9f6c92d34ad448346a7.zip
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/modules/services/networking/iwd.nix')
-rw-r--r--nixos/modules/services/networking/iwd.nix5
1 files changed, 5 insertions, 0 deletions
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" ];
   };