diff --git a/pkgs/lib/options.nix b/pkgs/lib/options.nix index 1fdf9ad8088d..5c896d5714c9 100644 --- a/pkgs/lib/options.nix +++ b/pkgs/lib/options.nix @@ -28,6 +28,13 @@ rec { # extraConfigs (list of possible configurations) }; + mkEnableOption = name: mkOption { + default = false; + example = true; + description = "Whether to enable ${name}"; + type = lib.types.bool; + }; + mapSubOptions = f: opt: if opt ? options then opt // {