inline method

This commit is contained in:
Daniel Barlow 2024-08-20 23:26:11 +01:00
parent d40ada4251
commit 21f2320d86
1 changed files with 2 additions and 3 deletions

View File

@ -32,14 +32,13 @@ let
int = builtins.toJSON;
set = (o: "output(${builtins.toJSON o.service}, ${builtins.toJSON o.path})");
}.${builtins.typeOf o}) o;
format_value = n : v:
"${n}={{ ${literal_or_output v} }}";
conf =
(writeText "hostapd.conf.in"
((concatStringsSep
"\n"
(mapAttrsToList
format_value
(n : v : "${n}={{ ${literal_or_output v} }}")
attrs)) + "\n"));
service = longrun {
inherit name;