mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
hooks: remove debug output
This commit is contained in:
parent
dfd7ee9590
commit
caf893b6eb
1 changed files with 6 additions and 6 deletions
12
types.nix
12
types.nix
|
@ -137,15 +137,15 @@ rec {
|
|||
|
||||
hookMixin = { config, options,... }: {
|
||||
options = let
|
||||
mkHook = default: mkOption {
|
||||
mkHook = mkOption {
|
||||
type = types.str;
|
||||
default = default;
|
||||
default = "";
|
||||
};
|
||||
in {
|
||||
preCreateHook = mkHook "echo 'DEBUG preCreate: ${config.type}'";
|
||||
postCreateHook = mkHook "echo 'DEBUG postCreate: ${config.type}'";
|
||||
preMountHook = mkHook "echo 'DEBUG preMount: ${config.type}'";
|
||||
postMountHook = mkHook "echo 'DEBUG postMount: ${config.type}'";
|
||||
preCreateHook = mkHook;
|
||||
postCreateHook = mkHook;
|
||||
preMountHook = mkHook;
|
||||
postMountHook = mkHook;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue