Skip to content

Commit 6cc40f8

Browse files
felixsingerbjornfor
authored andcommitted
nixos/flashprog: Use mkEnableOption instead of mkOption
Remove some overhead by using mkEnableOption. Signed-off-by: Felix Singer <[email protected]>
1 parent 9eac410 commit 6cc40f8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

nixos/modules/programs/flashprog.nix

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,10 @@ let
1010
in
1111
{
1212
options.programs.flashprog = {
13-
enable = lib.mkOption {
14-
type = lib.types.bool;
15-
default = false;
16-
description = ''
17-
Installs flashprog and configures udev rules for programmers
18-
used by flashprog.
19-
'';
20-
};
13+
enable = lib.mkEnableOption ''
14+
configuring flashprog udev rules and
15+
installing flashprog as system package
16+
'';
2117
package = lib.mkPackageOption pkgs "flashprog" { };
2218
};
2319

0 commit comments

Comments
 (0)