From 63eca646536050700ea651f5deed45dec74033c4 Mon Sep 17 00:00:00 2001 From: phaer Date: Sat, 14 Jan 2023 23:04:31 +0100 Subject: [PATCH] replace subshell by code block... ..for now, because subshell break zfs creation --- types.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.nix b/types.nix index 1476ca7..ebe7365 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"]} + { # ${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"; };