Commit 6cc40f87 authored by Felix Singer's avatar Felix Singer Committed by Bjørn Forsman
Browse files

nixos/flashprog: Use mkEnableOption instead of mkOption



Remove some overhead by using mkEnableOption.

Signed-off-by: default avatarFelix Singer <felixsinger@posteo.net>
parent 9eac4100
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -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" { };
  };