Silvan Mosberger
310699319b
nixos/doc: Add docs for types.anything
2020-09-15 21:08:19 +02:00
Silvan Mosberger
b3810166c7
nixos/doc: Soft deprecate types.attrs
2020-09-15 21:01:04 +02:00
rnhmjoj
20d491a317
treewide: completely remove types.loaOf
2020-09-02 00:42:50 +02:00
Robert Hensing
9884cb3ed0
Merge pull request #76861 from Infinisil/paths-as-submodules
...
lib/types: Allow paths as submodule values
2020-01-12 14:19:04 +01:00
Silvan Mosberger
b48717d1eb
lib/types: Introduce lazyAttrsOf
...
The standard attrsOf is strict in its *values*, meaning it's impossible to
access only one attribute value without evaluating all others as well.
lazyAttrsOf is a version that doesn't have that problem, at the expense
of conditional definitions not properly working anymore.
2020-01-10 16:19:55 +01:00
Silvan Mosberger
d5a2922641
nixos/doc: Note that attrsOf is strict in its values
2020-01-10 16:19:54 +01:00
Silvan Mosberger
6525da6321
lib/types: Allow paths as submodule values
2020-01-08 23:54:45 +01:00
Silvan Mosberger
c7ade6844f
Revert "lib/types: Allow paths as submodule values"
...
This reverts commit eec83d41e3
.
This broke hydra evaluation because with this commit submodule values
are allowed to be paths, however the certmgr module uses `either
(submodule ...) path` in its type, meaning it already used paths for
something else which would now be interpreted as a submodule.
2020-01-03 05:21:01 +01:00
Silvan Mosberger
eec83d41e3
lib/types: Allow paths as submodule values
2020-01-02 09:59:35 +01:00
Silvan Mosberger
90c82bfee7
nixos/docs: Add docs for types.submoduleWith
2020-01-02 09:59:32 +01:00
Eelco Dolstra
b0ccd6dd16
Revert "nixos/doc: re-format"
...
This reverts commit ea6e8775bd
. The new
format is not an improvement.
2019-09-19 19:17:30 +02:00
Jan Tojnar
ea6e8775bd
nixos/doc: re-format
2019-09-18 22:13:35 +02:00
Silvan Mosberger
9a44f44d4c
lib/types: Add oneOf, extension of either to a list of types
2019-08-06 14:08:42 +02:00
Andreas Rammhold
c55427ca43
nixos/doc: add types
prefix to addCheck
example
...
The function `addCheck` resides within the attrset `types`. We should be
explicit about this since otherwise people might be confused where it
does come from / why it doesn't work for them.
2019-03-11 22:56:56 +01:00
Daniel Rutz
0885a65169
nixos/doc: Add documentation for types.port type
2018-10-19 12:33:24 +02:00
Graham Christensen
18fd616351
nixos docs: Give sections IDs
2018-09-01 16:20:49 -04:00
Samuel Dionne-Riel
15fa70cd78
nixos/doc+man: Fixes squishedtogether definitions.
2018-05-31 21:07:15 -04:00
Samuel Dionne-Riel
88ca2b1ec4
nixos/doc: ran make format
...
With visual inspection that nothing got worse.
2018-05-31 21:03:51 -04:00
Niklas Hambüchen
6e7f4f99d1
manual: Document types.attrs
...
Signed-off-by: Niklas Hambüchen <mail@nh2.me>
2018-05-07 00:36:39 +02:00
Graham Christensen
eca5c99bf8
nixos docs: format =)
2018-05-01 19:57:09 -04:00
Richard Marko
d5de7bbc92
nixos manual: fix (n)of typo
2018-03-18 09:00:35 +01:00
Ryan Trinkle
83048c4fe0
nixpkgs.lib: Add types.strMatching
2017-12-02 13:28:00 -05:00
Profpatsch
462c048c77
lib/types: add ints.positive
.
...
For values that are positive, but cannot be 0.
2017-11-05 15:56:32 +01:00
Profpatsch
c85f085062
lib/types: update docs to match the new type names
2017-11-05 15:56:32 +01:00
Profpatsch
3e3bfc66f7
lib/types: nixos manual documentation for signed/unsinged int
...
Synchronize the manual for the new types.
2017-11-05 15:56:32 +01:00
Profpatsch
c53d874277
lib/types: add intBetween
...
An int type that checks the value range.
2017-11-05 15:56:32 +01:00
Thomas Bach
4d101993bf
manual: reworked submodule section for better readability
...
The section was strange to read, as the initial example already used
`listOf' which is mentioned in the very first paragraph. Then you read
in a subsection about `listOf' and the exact same example is given
once again.
2017-09-10 20:51:50 +02:00
Thomas Bach
572726a570
manual: name' is not an argument for
mkOption'
2017-09-10 20:51:50 +02:00
Jan Tojnar
e35f3c0679
doc: Fix some typos
2017-06-11 22:13:42 +02:00
Nikolay Amiantov
ee4f8c2dc9
nixos doc: document coercedTo type
...
Also mention about docs in types.nix and fix a small error in related
documentation.
Fixes #26055 .
2017-05-24 15:52:26 +03:00
Niklas Hambüchen
2df7d4d63a
manual: Fix addCheck
example having arguments in wrong order.
...
`addCheck` takes first the type, then the check.
2017-05-21 15:03:16 +02:00
Eric Sagnes
e14de56613
module system: extensible option types
2016-11-06 00:05:58 +01:00
Eric Sagnes
1fe1cdecb2
types: loeOf -> listOf
2016-11-05 21:46:42 +01:00
Eric Sagnes
b32252ddfa
NixOS manual: add module option types doc ( #18525 )
2016-09-13 07:04:02 +02:00