mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +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
|
||||
{
|
||||
options.programs.flashprog = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Installs flashprog and configures udev rules for programmers
|
||||
used by flashprog.
|
||||
'';
|
||||
};
|
||||
enable = lib.mkEnableOption ''
|
||||
configuring flashprog udev rules and
|
||||
installing flashprog as system package
|
||||
'';
|
||||
package = lib.mkPackageOption pkgs "flashprog" { };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue