nixos/flashprog: Use mkEnableOption instead of mkOption

Remove some overhead by using mkEnableOption.

Signed-off-by: Felix Singer <felixsinger@posteo.net>

authored by Felix Singer and committed by Bjørn Forsman 6cc40f87 9eac4100

+4 -8
+4 -8
nixos/modules/programs/flashprog.nix
··· 10 10 in 11 11 { 12 12 options.programs.flashprog = { 13 - enable = lib.mkOption { 14 - type = lib.types.bool; 15 - default = false; 16 - description = '' 17 - Installs flashprog and configures udev rules for programmers 18 - used by flashprog. 19 - ''; 20 - }; 13 + enable = lib.mkEnableOption '' 14 + configuring flashprog udev rules and 15 + installing flashprog as system package 16 + ''; 21 17 package = lib.mkPackageOption pkgs "flashprog" { }; 22 18 }; 23 19