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:
Felix Singer 2025-02-19 22:12:29 +01:00 committed by Bjørn Forsman
parent 9eac410097
commit 6cc40f8771

View file

@ -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" { };
};