forked from dan/liminix
hostapd: use trailing newlines rather than separating ones
This commit is contained in:
parent
38934984d9
commit
044af5efa3
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user