···
networking.supplicant = mkOption {
+
type = with types; attrsOf (submodule {
+
example = literalExample "/etc/wpa_supplicant.conf";
+
External <literal>wpa_supplicant.conf</literal> configuration file.
+
The configuration options defined declaratively within <literal>networking.supplicant</literal> have
+
precedence over options defined in <literal>configFile</literal>.
+
Whether the configuration file at <literal>configFile.path</literal> should be written to by
+
<literal>wpa_supplicant</literal>.
+
device_name=My-NixOS-Device
+
device_type=1-0050F204-1
+
driver_param=use_p2p_group_interface=1
+
p2p_listen_reg_class=81
+
model_name=NixOS_Unstable
+
Configuration options for <literal>wpa_supplicant.conf</literal>.
+
Options defined here have precedence over options in <literal>configFile</literal>.
+
NOTE: Do not write sensitive data into <literal>extraConf</literal> as it will
+
be world-readable in the <literal>nix-store</literal>. For sensitive information
+
use the <literal>configFile</literal> instead.
+
extraCmdArgs = mkOption {
+
example = "-e/var/run/wpa_supplicant/entropy.bin";
+
"Command line arguments to add when executing <literal>wpa_supplicant</literal>.";
+
type = types.nullOr types.str;
+
default = "nl80211,wext";
+
description = "Force a specific wpa_supplicant driver.";
+
description = "Name of the bridge interface that wpa_supplicant should listen at.";
+
Allow normal users to control wpa_supplicant through wpa_gui or wpa_cli.
+
This is useful for laptop users that switch networks a lot and don't want
+
to depend on a large package such as NetworkManager just to pick nearby
+
default = "/var/run/wpa_supplicant";
+
description = "Directory of sockets for controlling wpa_supplicant.";
+
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>.