diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2021-01-10 12:35:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 12:35:25 +0000 |
commit | b815fb2fd951f5fe805feb90787621bf03d3efff (patch) | |
tree | 4028061656e96c8b2133bf1a02b7bf2c35ed968a /nixos | |
parent | ad97cdf81d1889492f71ae421b98d6db9f982a36 (diff) | |
parent | 86b3251c8024cc61cdc6f57cf0b3b60480358a47 (diff) |
Merge pull request #105775 from xaverdh/iwd-link-unit
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/doc/manual/release-notes/rl-2103.xml | 9 | ||||
-rw-r--r-- | nixos/modules/services/networking/iwd.nix | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/nixos/doc/manual/release-notes/rl-2103.xml b/nixos/doc/manual/release-notes/rl-2103.xml index e40598082f99..e0857e7731ee 100644 --- a/nixos/doc/manual/release-notes/rl-2103.xml +++ b/nixos/doc/manual/release-notes/rl-2103.xml @@ -108,6 +108,15 @@ </para> </listitem> <listitem> + <para> + The <varname>networking.wireless.iwd</varname> module now installs + the upstream-provided 80-iwd.link file, which sets the NamePolicy= + for all wlan devices to "keep kernel", to avoid race conditions + between iwd and networkd. If you don't want this, you can set + <literal>systemd.network.links."80-iwd" = lib.mkForce {}</literal>. + </para> + </listitem> + <listitem> <para> <literal>rubyMinimal</literal> was removed due to being unused and unusable. The default ruby interpreter includes JIT support, which makes 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" ]; }; |