mirror of
https://github.com/nix-community/disko.git
synced 2024-09-19 18:47:16 +03:00
hooks: add description
This commit is contained in:
parent
caf893b6eb
commit
a63d0fa12b
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…
Reference in New Issue
Block a user