hooks: add description

This commit is contained in:
phaer 2023-01-19 13:12:08 +01:00
parent caf893b6eb
commit a63d0fa12b

View file

@ -137,15 +137,16 @@ rec {
hookMixin = { config, options,... }: { hookMixin = { config, options,... }: {
options = let options = let
mkHook = mkOption { mkHook = description: mkOption {
inherit description;
type = types.str; type = types.str;
default = ""; default = "";
}; };
in { in {
preCreateHook = mkHook; preCreateHook = mkHook "shell commands to run before create";
postCreateHook = mkHook; postCreateHook = mkHook "shell commands to run after create";
preMountHook = mkHook; preMountHook = mkHook "shell commands to run before mount";
postMountHook = mkHook; postMountHook = mkHook "shell commands to run after mount";
}; };
}; };