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