From 32f3730777738e5e895c96040cd3c3afc0b1df4a Mon Sep 17 00:00:00 2001 From: phaer Date: Sat, 14 Jan 2023 22:43:07 +0100 Subject: [PATCH] Revert "try an anonymous function for namespacing..." This reverts commit 6390d835025eb36a81bd2b97dcd1a5746e07ebfe. --- types.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.nix b/types.nix index fe78c16..1476ca7 100644 --- a/types.nix +++ b/types.nix @@ -159,12 +159,12 @@ rec { test = lib.optionalString (config ? name) "${config.${name}}"; 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; }} ${config.preCreateHook} ${attrs.default args} ${config.postCreateHook} - } + ) ''; description = "Creation script"; };