nixos/flashprog: Use mkEnableOption instead of mkOption
Remove some overhead by using mkEnableOption. Signed-off-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
parent
9eac410097
commit
6cc40f8771
@ -10,14 +10,10 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.programs.flashprog = {
|
options.programs.flashprog = {
|
||||||
enable = lib.mkOption {
|
enable = lib.mkEnableOption ''
|
||||||
type = lib.types.bool;
|
configuring flashprog udev rules and
|
||||||
default = false;
|
installing flashprog as system package
|
||||||
description = ''
|
'';
|
||||||
Installs flashprog and configures udev rules for programmers
|
|
||||||
used by flashprog.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
package = lib.mkPackageOption pkgs "flashprog" { };
|
package = lib.mkPackageOption pkgs "flashprog" { };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user