summary refs log tree commit diff
path: root/nixos/modules/tasks/network-interfaces.nix
diff options
context:
space:
mode:
authorKirill Elagin <kirelagin@gmail.com>2017-05-28 09:34:43 +0300
committerKirill Elagin <kirelagin@gmail.com>2017-05-28 09:34:43 +0300
commitb1f56b8b0c87ea01e1cf5f423124b83170d26272 (patch)
tree4a540bdd1e0aa7734df03a1ee48f73fe031bd6f9 /nixos/modules/tasks/network-interfaces.nix
parent9d4b23f245182f11770dbcc16587a16fda1d45a3 (diff)
downloadnixpkgs-b1f56b8b0c87ea01e1cf5f423124b83170d26272.tar
nixpkgs-b1f56b8b0c87ea01e1cf5f423124b83170d26272.tar.gz
nixpkgs-b1f56b8b0c87ea01e1cf5f423124b83170d26272.tar.bz2
nixpkgs-b1f56b8b0c87ea01e1cf5f423124b83170d26272.tar.lz
nixpkgs-b1f56b8b0c87ea01e1cf5f423124b83170d26272.tar.xz
nixpkgs-b1f56b8b0c87ea01e1cf5f423124b83170d26272.tar.zst
nixpkgs-b1f56b8b0c87ea01e1cf5f423124b83170d26272.zip
wirelessInterfaces: Add a missing parameter
Diffstat (limited to 'nixos/modules/tasks/network-interfaces.nix')
-rw-r--r--nixos/modules/tasks/network-interfaces.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index e9a3dca6418..8ce7b2d2cf3 100644
--- a/nixos/modules/tasks/network-interfaces.nix
+++ b/nixos/modules/tasks/network-interfaces.nix
@@ -1110,7 +1110,7 @@ in
             '';
 
             # Udev script to execute for a new WLAN interface. The script configures the new WLAN interface.
-            newInterfaceScript = new: pkgs.writeScript "udev-run-script-wlan-interfaces-${new._iName}.sh" ''
+            newInterfaceScript = device: new: pkgs.writeScript "udev-run-script-wlan-interfaces-${new._iName}.sh" ''
               #!${pkgs.stdenv.shell}
               # Configure the new interface
               ${pkgs.iw}/bin/iw dev ${new._iName} set type ${new.type}
@@ -1132,7 +1132,7 @@ in
             # It is important to have that rule first as overwriting the NAME attribute also prevents the
             # next rules from matching.
             ${flip (concatMapStringsSep "\n") (wlanListDeviceFirst device wlanDeviceInterfaces."${device}") (interface:
-            ''ACTION=="add", SUBSYSTEM=="net", ENV{DEVTYPE}=="wlan", ENV{INTERFACE}=="${interface._iName}", ${systemdAttrs interface._iName}, RUN+="${newInterfaceScript interface}"'')}
+            ''ACTION=="add", SUBSYSTEM=="net", ENV{DEVTYPE}=="wlan", ENV{INTERFACE}=="${interface._iName}", ${systemdAttrs interface._iName}, RUN+="${newInterfaceScript device interface}"'')}
 
             # Add the required, new WLAN interfaces to the default WLAN interface with the
             # persistent, default name as assigned by udev.