summary refs log tree commit diff
path: root/nixos/modules/services/networking/wpa_supplicant.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-29 13:04:26 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-29 13:14:30 +0100
commitf0b7b0af12be7b36add358cd1e24bbca02e57c64 (patch)
tree08f9d81edb07c94ab8da1046258087339978ba57 /nixos/modules/services/networking/wpa_supplicant.nix
parent38df1d24c4cae2dd52bd429cf1a651097e8dea51 (diff)
downloadnixpkgs-f0b7b0af12be7b36add358cd1e24bbca02e57c64.tar
nixpkgs-f0b7b0af12be7b36add358cd1e24bbca02e57c64.tar.gz
nixpkgs-f0b7b0af12be7b36add358cd1e24bbca02e57c64.tar.bz2
nixpkgs-f0b7b0af12be7b36add358cd1e24bbca02e57c64.tar.lz
nixpkgs-f0b7b0af12be7b36add358cd1e24bbca02e57c64.tar.xz
nixpkgs-f0b7b0af12be7b36add358cd1e24bbca02e57c64.tar.zst
nixpkgs-f0b7b0af12be7b36add358cd1e24bbca02e57c64.zip
wpa_supplicant.nix: Add option types
Diffstat (limited to 'nixos/modules/services/networking/wpa_supplicant.nix')
-rw-r--r--nixos/modules/services/networking/wpa_supplicant.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/wpa_supplicant.nix b/nixos/modules/services/networking/wpa_supplicant.nix
index dca398dd8be..89c8687403b 100644
--- a/nixos/modules/services/networking/wpa_supplicant.nix
+++ b/nixos/modules/services/networking/wpa_supplicant.nix
@@ -26,6 +26,7 @@ in
 
     networking.wireless = {
       enable = mkOption {
+        type = types.bool;
         default = false;
         description = ''
           Whether to start <command>wpa_supplicant</command> to scan for
@@ -40,6 +41,7 @@ in
       };
 
       interfaces = mkOption {
+        type = types.listOf types.string;
         default = [];
         example = [ "wlan0" "wlan1" ];
         description = ''
@@ -51,12 +53,14 @@ in
       };
 
       driver = mkOption {
+        type = types.uniq types.string;
         default = "nl80211,wext";
         description = "Force a specific wpa_supplicant driver.";
       };
 
       userControlled = {
         enable = mkOption {
+          type = types.bool;
           default = false;
           description = ''
             Allow normal users to control wpa_supplicant through wpa_gui or wpa_cli.
@@ -70,9 +74,9 @@ in
         };
 
         group = mkOption {
+          type = types.uniq types.string;
           default = "wheel";
           example = "network";
-          type = types.string;
           description = "Members of this group can control wpa_supplicant.";
         };
       };