diff --git a/types.nix b/types.nix index fbf5744..9c44197 100644 --- a/types.nix +++ b/types.nix @@ -155,11 +155,13 @@ rec { readOnly = true; type = types.functionTo types.str; default = args: - lib.concatStrings [ + lib.concatStringsSep "\n" [ + "(" # subshell for namespacing (diskoLib.defineHookVariables { inherit config options; }) config.preCreateHook (default args) config.postCreateHook + ")" ]; description = "Creation script"; };