mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
also add indentation to the hooks
This commit is contained in:
parent
248f65b9c4
commit
48580409a2
1 changed files with 4 additions and 4 deletions
|
@ -232,9 +232,9 @@ let
|
|||
default = ''
|
||||
( # ${config.type} ${concatMapStringsSep " " (n: toString (config.${n} or "")) ["name" "device" "format" "mountpoint"]} #
|
||||
${diskoLib.indent (diskoLib.defineHookVariables { inherit options; })}
|
||||
${config.preCreateHook}
|
||||
${diskoLib.indent config.preCreateHook}
|
||||
${diskoLib.indent attrs.default}
|
||||
${config.postCreateHook}
|
||||
${diskoLib.indent config.postCreateHook}
|
||||
)
|
||||
'';
|
||||
description = "Creation script";
|
||||
|
@ -250,9 +250,9 @@ let
|
|||
if builtins.isString value then ''
|
||||
(
|
||||
${diskoLib.indent (diskoLib.defineHookVariables { inherit options; })}
|
||||
${config.preMountHook}
|
||||
${diskoLib.indent config.preMountHook}
|
||||
${diskoLib.indent value}
|
||||
${config.postMountHook}
|
||||
${diskoLib.indent config.postMountHook}
|
||||
)
|
||||
'' else value)
|
||||
attrs.default;
|
||||
|
|
Loading…
Reference in a new issue