diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-09-15 20:19:42 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-09-15 20:27:48 +0200 |
commit | 6b7a9376f17deb2adb2b010e8022bea5e43042e9 (patch) | |
tree | 27d92999c67ea83e24d2cf412d84b69a3d8088dd | |
parent | 990ea8789db2203f31025ab3f9a333aae55c750b (diff) | |
download | nixlib-6b7a9376f17deb2adb2b010e8022bea5e43042e9.tar nixlib-6b7a9376f17deb2adb2b010e8022bea5e43042e9.tar.gz nixlib-6b7a9376f17deb2adb2b010e8022bea5e43042e9.tar.bz2 nixlib-6b7a9376f17deb2adb2b010e8022bea5e43042e9.tar.lz nixlib-6b7a9376f17deb2adb2b010e8022bea5e43042e9.tar.xz nixlib-6b7a9376f17deb2adb2b010e8022bea5e43042e9.tar.zst nixlib-6b7a9376f17deb2adb2b010e8022bea5e43042e9.zip |
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.
-rw-r--r-- | nixos/modules/services/networking/supplicant.nix | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/nixos/modules/services/networking/supplicant.nix b/nixos/modules/services/networking/supplicant.nix index 31d11548f195..dc90a4bcc620 100644 --- a/nixos/modules/services/networking/supplicant.nix +++ b/nixos/modules/services/networking/supplicant.nix @@ -181,18 +181,19 @@ in default = { }; - example = { - "wlan0 wlan1" = { - configFile = "/etc/wpa_supplicant"; - userControlled.group = "network"; - extraConf = '' - ap_scan=1 - p2p_disabled=1 - ''; - extraCmdArgs = "-u -W"; - bridge = "br0"; - }; - }; + example = literalExample '' + { "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>. |