diff options
author | Thomas Strobel <ts468@cam.ac.uk> | 2015-10-02 12:06:55 +0200 |
---|---|---|
committer | Thomas Strobel <ts468@cam.ac.uk> | 2015-10-02 12:16:20 +0200 |
commit | 213bb5875282acb531d8e64737ab399224ec9fe8 (patch) | |
tree | 79599806abc6d2b629df9eede804fcead1770141 /nixos/modules/tasks | |
parent | 277d44f8fb14fb12de0cfbb8dcd527e9ff95deda (diff) | |
download | nixpkgs-213bb5875282acb531d8e64737ab399224ec9fe8.tar nixpkgs-213bb5875282acb531d8e64737ab399224ec9fe8.tar.gz nixpkgs-213bb5875282acb531d8e64737ab399224ec9fe8.tar.bz2 nixpkgs-213bb5875282acb531d8e64737ab399224ec9fe8.tar.lz nixpkgs-213bb5875282acb531d8e64737ab399224ec9fe8.tar.xz nixpkgs-213bb5875282acb531d8e64737ab399224ec9fe8.tar.zst nixpkgs-213bb5875282acb531d8e64737ab399224ec9fe8.zip |
networking module: fix for wlanInterfaces
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r-- | nixos/modules/tasks/network-interfaces.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix index 9ffede48bf5..03e647b1b1e 100644 --- a/nixos/modules/tasks/network-interfaces.nix +++ b/nixos/modules/tasks/network-interfaces.nix @@ -59,7 +59,7 @@ let # place the interface which is named after the device at the beginning. wlanListDeviceFirst = device: interfaces: if hasAttr device interfaces - then [{"${device}"=interfaces.device; _iName=device;}] ++ mapAttrsToList (n: v: v//{_iName=n;}) (filterAttrs (n: _: n!=device) interfaces) + then mapAttrsToList (n: v: v//{_iName=n;}) (filterAttrs (n: _: n==device) interfaces) ++ mapAttrsToList (n: v: v//{_iName=n;}) (filterAttrs (n: _: n!=device) interfaces) else mapAttrsToList (n: v: v // {_iName = n;}) interfaces; # udev script that configures a physical wlan device and adds virtual interfaces |