mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
Revert "try an anonymous function for namespacing..."
This reverts commit 6390d835025eb36a81bd2b97dcd1a5746e07ebfe.
This commit is contained in:
parent
21e31af678
commit
32f3730777
1 changed files with 2 additions and 2 deletions
|
|
@ -159,12 +159,12 @@ rec {
|
||||||
test = lib.optionalString (config ? name) "${config.${name}}";
|
test = lib.optionalString (config ? name) "${config.${name}}";
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
function { # ${config.type} ${concatMapStringsSep " " (n: toString (config.${n} or "")) ["name" "device" "format" "mountpoint"]}
|
( # ${config.type} ${concatMapStringsSep " " (n: toString (config.${n} or "")) ["name" "device" "format" "mountpoint"]}
|
||||||
${diskoLib.defineHookVariables { inherit config options; }}
|
${diskoLib.defineHookVariables { inherit config options; }}
|
||||||
${config.preCreateHook}
|
${config.preCreateHook}
|
||||||
${attrs.default args}
|
${attrs.default args}
|
||||||
${config.postCreateHook}
|
${config.postCreateHook}
|
||||||
}
|
)
|
||||||
'';
|
'';
|
||||||
description = "Creation script";
|
description = "Creation script";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue