lib: options: add mkDisableOption
This commit is contained in:
parent
331b7cf8e3
commit
5b646ec174
10
lib/options.nix
Normal file
10
lib/options.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# Create an option which is enabled by default, in contrast to
|
||||||
|
# `mkEnableOption` ones which are disabled by default.
|
||||||
|
mkDisableOption =
|
||||||
|
description: (mkEnableOption description) // { default = true; };
|
||||||
|
}
|
Loading…
Reference in a new issue