wpa_supplicant.nix: Add option types

This commit is contained in:
Eelco Dolstra 2013-10-29 13:04:26 +01:00
parent 38df1d24c4
commit f0b7b0af12

View File

@ -26,6 +26,7 @@ in
networking.wireless = { networking.wireless = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to start <command>wpa_supplicant</command> to scan for Whether to start <command>wpa_supplicant</command> to scan for
@ -40,6 +41,7 @@ in
}; };
interfaces = mkOption { interfaces = mkOption {
type = types.listOf types.string;
default = []; default = [];
example = [ "wlan0" "wlan1" ]; example = [ "wlan0" "wlan1" ];
description = '' description = ''
@ -51,12 +53,14 @@ in
}; };
driver = mkOption { driver = mkOption {
type = types.uniq types.string;
default = "nl80211,wext"; default = "nl80211,wext";
description = "Force a specific wpa_supplicant driver."; description = "Force a specific wpa_supplicant driver.";
}; };
userControlled = { userControlled = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Allow normal users to control wpa_supplicant through wpa_gui or wpa_cli. Allow normal users to control wpa_supplicant through wpa_gui or wpa_cli.
@ -70,9 +74,9 @@ in
}; };
group = mkOption { group = mkOption {
type = types.uniq types.string;
default = "wheel"; default = "wheel";
example = "network"; example = "network";
type = types.string;
description = "Members of this group can control wpa_supplicant."; description = "Members of this group can control wpa_supplicant.";
}; };
}; };