Skip to content

Commit 9a8ed54

Browse files
authored
Merge pull request #166 from zimward/push-umsrpxyztwlt
lib/modules/command: use lines type for Hooks
2 parents 0976652 + 36dc856 commit 9a8ed54

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)