mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
hooks: add description
This commit is contained in:
1 parent
caf893b6eb
commit
a63d0fa12b
1 file changed
+6
-5
@@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user