mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-03 01:25:57 +00:00
lib: cleanup; move mkBool to modules as mkBoolOption
This commit is contained in:
parent
f7fca7fb9c
commit
4eb26c0d98
4 changed files with 14 additions and 26 deletions
13
lib/modules.nix
Normal file
13
lib/modules.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue