summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--modules/services/networking/wpa_supplicant.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/services/networking/wpa_supplicant.nix b/modules/services/networking/wpa_supplicant.nix
index 93450f8eac1..10c9041cf3e 100644
--- a/modules/services/networking/wpa_supplicant.nix
+++ b/modules/services/networking/wpa_supplicant.nix
@@ -28,6 +28,13 @@ in
       '';
     };
 
+    networking.WLANInterface = mkOption {
+      default = "wlan0";
+      description = ''
+        The interface wpa_supplicant will use, if enableWLAN is enabled.
+      '';
+    };
+
   };
 
 
@@ -49,7 +56,7 @@ in
 
         exec =
           "${pkgs.wpa_supplicant}/sbin/wpa_supplicant " +
-          "-C /var/run/wpa_supplicant -c ${configFile} -iwlan0";
+          "-C /var/run/wpa_supplicant -c ${configFile} -i${config.networking.WLANInterface}";
       };
   
   };