mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
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
1 changed files with 4 additions and 8 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue