mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 04:24:28 +03:00
nixos/doc: Clarify wireless examples
This commits makes it clearer to a novice reader how to configure several diferent types of SSID connections that were otherwise obscurely documented Resolves #66650
This commit is contained in:
parent
bc0072305b
commit
cce7486deb
@ -19,10 +19,17 @@
|
|||||||
NixOS lets you specify networks for wpa_supplicant declaratively:
|
NixOS lets you specify networks for wpa_supplicant declaratively:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<xref linkend="opt-networking.wireless.networks"/> = {
|
<xref linkend="opt-networking.wireless.networks"/> = {
|
||||||
echelon = {
|
echelon = { # SSID with no spaces or special characters
|
||||||
psk = "abcdefgh";
|
psk = "abcdefgh";
|
||||||
};
|
};
|
||||||
"free.wifi" = {};
|
"echelon's AP" = { # SSID with spaces and/or special characters
|
||||||
|
psk = "ijklmnop";
|
||||||
|
};
|
||||||
|
echelon = { # Hidden SSID
|
||||||
|
hidden = true;
|
||||||
|
psk = "qrstuvwx";
|
||||||
|
};
|
||||||
|
free.wifi = {}; # Public wireless network
|
||||||
};
|
};
|
||||||
</programlisting>
|
</programlisting>
|
||||||
Be aware that keys will be written to the nix store in plaintext! When no
|
Be aware that keys will be written to the nix store in plaintext! When no
|
||||||
|
@ -103,6 +103,13 @@ in {
|
|||||||
description = ''
|
description = ''
|
||||||
Set this to <literal>true</literal> if the SSID of the network is hidden.
|
Set this to <literal>true</literal> if the SSID of the network is hidden.
|
||||||
'';
|
'';
|
||||||
|
example = literalExample ''
|
||||||
|
{ echelon = {
|
||||||
|
hidden = true;
|
||||||
|
psk = "abcdefgh";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
priority = mkOption {
|
priority = mkOption {
|
||||||
@ -146,10 +153,13 @@ in {
|
|||||||
'';
|
'';
|
||||||
default = {};
|
default = {};
|
||||||
example = literalExample ''
|
example = literalExample ''
|
||||||
{ echelon = {
|
{ echelon = { # SSID with no spaces or special characters
|
||||||
psk = "abcdefgh";
|
psk = "abcdefgh";
|
||||||
};
|
};
|
||||||
"free.wifi" = {};
|
"echelon's AP" = { # SSID with spaces and/or special characters
|
||||||
|
psk = "ijklmnop";
|
||||||
|
};
|
||||||
|
"free.wifi" = {}; # Public wireless network
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user