mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
nixos/wpa_supplicant: use literalExample
For various reasons, big Nix attrsets look ugly in the generated manual page[1]. Use literalExample to fix it. [1] Quotes around attribute names are lost, newlines inside multi-line strings are shown as '\n' and attrs written on multiple lines are joined into one.
This commit is contained in:
parent
990ea8789d
commit
6b7a9376f1
|
@ -181,18 +181,19 @@ in
|
||||||
|
|
||||||
default = { };
|
default = { };
|
||||||
|
|
||||||
example = {
|
example = literalExample ''
|
||||||
"wlan0 wlan1" = {
|
{ "wlan0 wlan1" = {
|
||||||
configFile = "/etc/wpa_supplicant";
|
configFile = "/etc/wpa_supplicant";
|
||||||
userControlled.group = "network";
|
userControlled.group = "network";
|
||||||
extraConf = ''
|
extraConf = '''
|
||||||
ap_scan=1
|
ap_scan=1
|
||||||
p2p_disabled=1
|
p2p_disabled=1
|
||||||
'';
|
''';
|
||||||
extraCmdArgs = "-u -W";
|
extraCmdArgs = "-u -W";
|
||||||
bridge = "br0";
|
bridge = "br0";
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
description = ''
|
description = ''
|
||||||
Interfaces for which to start <command>wpa_supplicant</command>.
|
Interfaces for which to start <command>wpa_supplicant</command>.
|
||||||
|
|
Loading…
Reference in a new issue