mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-02 09:05:55 +00:00
13 lines
297 B
Nix
13 lines
297 B
Nix
{lib}: let
|
|
inherit (lib.options) mkOption;
|
|
inherit (lib.types) bool;
|
|
in {
|
|
# mkBoolOption: bool -> string -> option
|
|
# e.g. mkBoolOption true "Enable feature X"
|
|
mkBoolOption = value: description:
|
|
mkOption {
|
|
type = bool;
|
|
default = value;
|
|
inherit description;
|
|
};
|
|
}
|