From a63d0fa12b9df151897d189257ae441381cfc864 Mon Sep 17 00:00:00 2001 From: phaer Date: Thu, 19 Jan 2023 13:12:08 +0100 Subject: [PATCH] hooks: add description --- types.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/types.nix b/types.nix index cd3659d..5d7d337 100644 --- a/types.nix +++ b/types.nix @@ -137,15 +137,16 @@ rec { hookMixin = { config, options,... }: { options = let - mkHook = mkOption { + mkHook = description: mkOption { + inherit description; type = types.str; default = ""; }; in { - preCreateHook = mkHook; - postCreateHook = mkHook; - preMountHook = mkHook; - postMountHook = mkHook; + preCreateHook = mkHook "shell commands to run before create"; + postCreateHook = mkHook "shell commands to run after create"; + preMountHook = mkHook "shell commands to run before mount"; + postMountHook = mkHook "shell commands to run after mount"; }; };