Skip to content

Commit 36dc856

Browse files
committed
lib/modules/command: use lines type for Hooks
1 parent 0976652 commit 36dc856

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/modules/command.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
'';
3737
};
3838
options.preHook = lib.mkOption {
39-
type = lib.types.str;
39+
type = lib.types.lines;
4040
default = "";
4141
description = ''
4242
Shell script to run before executing the command.
4343
'';
4444
};
4545
options.postHook = lib.mkOption {
46-
type = lib.types.str;
46+
type = lib.types.lines;
4747
default = "";
4848
description = ''
4949
Shell script to run after executing the command.

0 commit comments

Comments
 (0)