From 48580409a2df1b0364116541228df3bcc84fc3a4 Mon Sep 17 00:00:00 2001 From: name_snrl Date: Wed, 19 Jun 2024 10:25:45 +0500 Subject: [PATCH] also add indentation to the hooks --- lib/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index 57b6833..f4337f9 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -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;