blob: 0bc59f6311d0869a3c2067781a61e824c357eaf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[Types](https://nixos.org/manual/nixos/stable/#sec-option-types)
[[Delayed conditionals]]
---
```nix
{
options = {
name = mkOption {
type = type specification;
default = default value;
example = example value;
description = "Description for use in the NixOS manual.";
};
};
}
```
# Utility functions
`mkEnableOption "what"` -> a bool opt with a desc like: "Whether to enable what".
|