mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 06:23:28 +01:00
also add indentation to the hooks
This commit is contained in:
1 parent
248f65b9c4
commit
48580409a2
1 file changed
+4
-4
+4
-4
@@ -232,9 +232,9 @@ let
|
|||||||
default = ''
|
default = ''
|
||||||
( # ${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.indent (diskoLib.defineHookVariables { inherit options; })}
|
${diskoLib.indent (diskoLib.defineHookVariables { inherit options; })}
|
||||||
${config.preCreateHook}
|
${diskoLib.indent config.preCreateHook}
|
||||||
${diskoLib.indent attrs.default}
|
${diskoLib.indent attrs.default}
|
||||||
${config.postCreateHook}
|
${diskoLib.indent config.postCreateHook}
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
description = "Creation script";
|
description = "Creation script";
|
||||||
@@ -250,9 +250,9 @@ let
|
|||||||
if builtins.isString value then ''
|
if builtins.isString value then ''
|
||||||
(
|
(
|
||||||
${diskoLib.indent (diskoLib.defineHookVariables { inherit options; })}
|
${diskoLib.indent (diskoLib.defineHookVariables { inherit options; })}
|
||||||
${config.preMountHook}
|
${diskoLib.indent config.preMountHook}
|
||||||
${diskoLib.indent value}
|
${diskoLib.indent value}
|
||||||
${config.postMountHook}
|
${diskoLib.indent config.postMountHook}
|
||||||
)
|
)
|
||||||
'' else value)
|
'' else value)
|
||||||
attrs.default;
|
attrs.default;
|
||||||
|
|||||||
Reference in new issue
Block a user