Skip to content

Commit eb9778d

Browse files
committed
Set the default hook package to null
Allows creating hooks that don't depend on a package without having to explicitly set this to null.
1 parent e35aed5 commit eb9778d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/hook.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ in
4646

4747
package = mkOption {
4848
type = types.nullOr types.package;
49+
default = null;
4950
description = lib.mdDoc
5051
''
5152
An optional package that provides the hook.

0 commit comments

Comments
 (0)