lol

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.

+13 -12
+13 -12
nixos/modules/services/networking/supplicant.nix
··· 181 181 182 182 default = { }; 183 183 184 - example = { 185 - "wlan0 wlan1" = { 186 - configFile = "/etc/wpa_supplicant"; 187 - userControlled.group = "network"; 188 - extraConf = '' 189 - ap_scan=1 190 - p2p_disabled=1 191 - ''; 192 - extraCmdArgs = "-u -W"; 193 - bridge = "br0"; 194 - }; 195 - }; 184 + example = literalExample '' 185 + { "wlan0 wlan1" = { 186 + configFile = "/etc/wpa_supplicant"; 187 + userControlled.group = "network"; 188 + extraConf = ''' 189 + ap_scan=1 190 + p2p_disabled=1 191 + '''; 192 + extraCmdArgs = "-u -W"; 193 + bridge = "br0"; 194 + }; 195 + } 196 + ''; 196 197 197 198 description = '' 198 199 Interfaces for which to start <command>wpa_supplicant</command>.