summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2021-01-10 12:35:25 +0000
committerGitHub <noreply@github.com>2021-01-10 12:35:25 +0000
commitb815fb2fd951f5fe805feb90787621bf03d3efff (patch)
tree4028061656e96c8b2133bf1a02b7bf2c35ed968a /nixos/modules
parentad97cdf81d1889492f71ae421b98d6db9f982a36 (diff)
parent86b3251c8024cc61cdc6f57cf0b3b60480358a47 (diff)
Merge pull request #105775 from xaverdh/iwd-link-unit
Diffstat (limited to 'nixos/modules')
-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 6be67a8b96f4d..99e5e78badd28 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" ];
   };