lib: format nixdoc values
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ia6dcbf5c44ff6d29e5760111179341226a6a6964
This commit is contained in:
raf 2026-06-20 02:08:55 +03:00
commit 56e20dd9c8
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
7 changed files with 322 additions and 322 deletions

View file

@ -6,25 +6,25 @@
inherit (lib.lists) flatten;
in {
/**
Build a boolean NixOS option with the given default value and description.
Build a boolean NixOS option with the given default value and description.
# Type
# Type
```
mkBool :: Bool -> String -> Option
```
```
mkBool :: Bool -> String -> Option
```
# Arguments
# Arguments
- `value`: Default boolean value for the option.
- `description`: Documentation string for the option.
- `value`: Default boolean value for the option.
- `description`: Documentation string for the option.
# Example
# Example
```nix
mkBool true "Enable feature X"
=> mkOption { type = bool; default = true; description = "Enable feature X"; }
```
```nix
mkBool true "Enable feature X"
=> mkOption { type = bool; default = true; description = "Enable feature X"; }
```
*/
mkBool = value: description:
mkOption {