try an anonymous function for namespacing...

...no local yet
This commit is contained in:
phaer committed 2023-01-19 13:07:31 +01:00
1 parent ad6ab7df50
commit 21e31af678
1 file changed
+2 -2
+2 -2
View File
@@ -159,12 +159,12 @@ rec {
test = lib.optionalString (config ? name) "${config.${name}}";
in
''
( # ${config.type} ${concatMapStringsSep " " (n: toString (config.${n} or "")) ["name" "device" "format" "mountpoint"]}
function { # ${config.type} ${concatMapStringsSep " " (n: toString (config.${n} or "")) ["name" "device" "format" "mountpoint"]}
${diskoLib.defineHookVariables { inherit config options; }}
${config.preCreateHook}
${attrs.default args}
${config.postCreateHook}
)
}
'';
description = "Creation script";
};