1
0
Fork 0

hostapd: use trailing newlines rather than separating ones

This commit is contained in:
Linus Heckemann 2024-03-06 14:50:08 +01:00
parent 38934984d9
commit 044af5efa3
1 changed files with 4 additions and 5 deletions

View File

@ -7,7 +7,7 @@
{ interface, params} : { interface, params} :
let let
inherit (liminix.services) longrun; inherit (liminix.services) longrun;
inherit (lib) concatStringsSep mapAttrsToList; inherit (lib) concatStrings mapAttrsToList;
inherit (liminix.lib) typeChecked; inherit (liminix.lib) typeChecked;
inherit (lib) mkOption types; inherit (lib) mkOption types;
@ -22,15 +22,14 @@ let
driver = "nl80211"; driver = "nl80211";
logger_syslog = "-1"; logger_syslog = "-1";
logger_syslog_level = 1; logger_syslog_level = 1;
ctrl_interface = "/run/hostapd"; ctrl_interface = "/run/hostapd.${name}";
ctrl_interface_group = 0; ctrl_interface_group = 0;
}; };
conf = writeText "hostapd.conf" conf = writeText "hostapd.conf"
(concatStringsSep (concatStrings
"\n"
(mapAttrsToList (mapAttrsToList
(name: value: "${name}=${toString value}") (name: value: "${name}=${toString value}\n")
(defaults // params))); (defaults // params)));
in longrun { in longrun {
inherit name; inherit name;