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,... }: {
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";
};
};