···
networking.supplicant = mkOption {
78
-
type = types.attrsOf types.optionSet;
78
+
type = with types; attrsOf (submodule {
85
+
example = literalExample "/etc/wpa_supplicant.conf";
87
+
External <literal>wpa_supplicant.conf</literal> configuration file.
88
+
The configuration options defined declaratively within <literal>networking.supplicant</literal> have
89
+
precedence over options defined in <literal>configFile</literal>.
93
+
writable = mkOption {
97
+
Whether the configuration file at <literal>configFile.path</literal> should be written to by
98
+
<literal>wpa_supplicant</literal>.
104
+
extraConf = mkOption {
105
+
type = types.lines;
109
+
device_name=My-NixOS-Device
110
+
device_type=1-0050F204-1
111
+
driver_param=use_p2p_group_interface=1
112
+
disable_scan_offload=1
113
+
p2p_listen_reg_class=81
114
+
p2p_listen_channel=1
115
+
p2p_oper_reg_class=81
118
+
model_name=NixOS_Unstable
122
+
Configuration options for <literal>wpa_supplicant.conf</literal>.
123
+
Options defined here have precedence over options in <literal>configFile</literal>.
124
+
NOTE: Do not write sensitive data into <literal>extraConf</literal> as it will
125
+
be world-readable in the <literal>nix-store</literal>. For sensitive information
126
+
use the <literal>configFile</literal> instead.
130
+
extraCmdArgs = mkOption {
133
+
example = "-e/var/run/wpa_supplicant/entropy.bin";
135
+
"Command line arguments to add when executing <literal>wpa_supplicant</literal>.";
138
+
driver = mkOption {
139
+
type = types.nullOr types.str;
140
+
default = "nl80211,wext";
141
+
description = "Force a specific wpa_supplicant driver.";
144
+
bridge = mkOption {
147
+
description = "Name of the bridge interface that wpa_supplicant should listen at.";
152
+
enable = mkOption {
156
+
Allow normal users to control wpa_supplicant through wpa_gui or wpa_cli.
157
+
This is useful for laptop users that switch networks a lot and don't want
158
+
to depend on a large package such as NetworkManager just to pick nearby
163
+
socketDir = mkOption {
165
+
default = "/var/run/wpa_supplicant";
166
+
description = "Directory of sockets for controlling wpa_supplicant.";
172
+
example = "network";
173
+
description = "Members of this group can control wpa_supplicant.";
···
<literal>DBUS</literal> defines a device-unrelated <command>wpa_supplicant</command>
service that can be accessed through <literal>D-Bus</literal>.
118
-
example = literalExample "/etc/wpa_supplicant.conf";
120
-
External <literal>wpa_supplicant.conf</literal> configuration file.
121
-
The configuration options defined declaratively within <literal>networking.supplicant</literal> have
122
-
precedence over options defined in <literal>configFile</literal>.
126
-
writable = mkOption {
130
-
Whether the configuration file at <literal>configFile.path</literal> should be written to by
131
-
<literal>wpa_supplicant</literal>.
137
-
extraConf = mkOption {
138
-
type = types.lines;
142
-
device_name=My-NixOS-Device
143
-
device_type=1-0050F204-1
144
-
driver_param=use_p2p_group_interface=1
145
-
disable_scan_offload=1
146
-
p2p_listen_reg_class=81
147
-
p2p_listen_channel=1
148
-
p2p_oper_reg_class=81
151
-
model_name=NixOS_Unstable
155
-
Configuration options for <literal>wpa_supplicant.conf</literal>.
156
-
Options defined here have precedence over options in <literal>configFile</literal>.
157
-
NOTE: Do not write sensitive data into <literal>extraConf</literal> as it will
158
-
be world-readable in the <literal>nix-store</literal>. For sensitive information
159
-
use the <literal>configFile</literal> instead.
163
-
extraCmdArgs = mkOption {
166
-
example = "-e/var/run/wpa_supplicant/entropy.bin";
168
-
"Command line arguments to add when executing <literal>wpa_supplicant</literal>.";
171
-
driver = mkOption {
172
-
type = types.nullOr types.str;
173
-
default = "nl80211,wext";
174
-
description = "Force a specific wpa_supplicant driver.";
177
-
bridge = mkOption {
180
-
description = "Name of the bridge interface that wpa_supplicant should listen at.";
185
-
enable = mkOption {
189
-
Allow normal users to control wpa_supplicant through wpa_gui or wpa_cli.
190
-
This is useful for laptop users that switch networks a lot and don't want
191
-
to depend on a large package such as NetworkManager just to pick nearby
196
-
socketDir = mkOption {
198
-
default = "/var/run/wpa_supplicant";
199
-
description = "Directory of sockets for controlling wpa_supplicant.";
205
-
example = "network";
206
-
description = "Members of this group can control wpa_supplicant.";