supplicant module: optionSet -> submodule
This commit is contained in:
parent
48d6fa933c
commit
819524a0d3
@ -75,40 +75,7 @@ in
|
|||||||
options = {
|
options = {
|
||||||
|
|
||||||
networking.supplicant = mkOption {
|
networking.supplicant = mkOption {
|
||||||
type = types.attrsOf types.optionSet;
|
type = with types; attrsOf (submodule {
|
||||||
|
|
||||||
default = { };
|
|
||||||
|
|
||||||
example = {
|
|
||||||
"wlan0 wlan1" = {
|
|
||||||
configFile = "/etc/wpa_supplicant";
|
|
||||||
userControlled.group = "network";
|
|
||||||
extraConf = ''
|
|
||||||
ap_scan=1
|
|
||||||
p2p_disabled=1
|
|
||||||
'';
|
|
||||||
extraCmdArgs = "-u -W";
|
|
||||||
bridge = "br0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
description = ''
|
|
||||||
Interfaces for which to start <command>wpa_supplicant</command>.
|
|
||||||
The supplicant is used to scan for and associate with wireless networks,
|
|
||||||
or to authenticate with 802.1x capable network switches.
|
|
||||||
|
|
||||||
The value of this option is an attribute set. Each attribute configures a
|
|
||||||
<command>wpa_supplicant</command> service, where the attribute name specifies
|
|
||||||
the name of the interface that <command>wpa_supplicant</command> operates on.
|
|
||||||
The attribute name can be a space separated list of interfaces.
|
|
||||||
The attribute names <literal>WLAN</literal>, <literal>LAN</literal> and <literal>DBUS</literal>
|
|
||||||
have a special meaning. <literal>WLAN</literal> and <literal>LAN</literal> are
|
|
||||||
configurations for universal <command>wpa_supplicant</command> service that is
|
|
||||||
started for each WLAN interface or for each LAN interface, respectively.
|
|
||||||
<literal>DBUS</literal> defines a device-unrelated <command>wpa_supplicant</command>
|
|
||||||
service that can be accessed through <literal>D-Bus</literal>.
|
|
||||||
'';
|
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
configFile = {
|
configFile = {
|
||||||
@ -207,8 +174,40 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
default = { };
|
||||||
|
|
||||||
|
example = {
|
||||||
|
"wlan0 wlan1" = {
|
||||||
|
configFile = "/etc/wpa_supplicant";
|
||||||
|
userControlled.group = "network";
|
||||||
|
extraConf = ''
|
||||||
|
ap_scan=1
|
||||||
|
p2p_disabled=1
|
||||||
|
'';
|
||||||
|
extraCmdArgs = "-u -W";
|
||||||
|
bridge = "br0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
description = ''
|
||||||
|
Interfaces for which to start <command>wpa_supplicant</command>.
|
||||||
|
The supplicant is used to scan for and associate with wireless networks,
|
||||||
|
or to authenticate with 802.1x capable network switches.
|
||||||
|
|
||||||
|
The value of this option is an attribute set. Each attribute configures a
|
||||||
|
<command>wpa_supplicant</command> service, where the attribute name specifies
|
||||||
|
the name of the interface that <command>wpa_supplicant</command> operates on.
|
||||||
|
The attribute name can be a space separated list of interfaces.
|
||||||
|
The attribute names <literal>WLAN</literal>, <literal>LAN</literal> and <literal>DBUS</literal>
|
||||||
|
have a special meaning. <literal>WLAN</literal> and <literal>LAN</literal> are
|
||||||
|
configurations for universal <command>wpa_supplicant</command> service that is
|
||||||
|
started for each WLAN interface or for each LAN interface, respectively.
|
||||||
|
<literal>DBUS</literal> defines a device-unrelated <command>wpa_supplicant</command>
|
||||||
|
service that can be accessed through <literal>D-Bus</literal>.
|
||||||
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user