diff --git a/types.nix b/types.nix index 1476ca7..fe78c16 100644 --- a/types.nix +++ b/types.nix @@ -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"; };