mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
hooks: add description
This commit is contained in:
parent
caf893b6eb
commit
a63d0fa12b
1 changed files with 6 additions and 5 deletions
11
types.nix
11
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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue