mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 05:03:09 +00:00
docs: Mention GVariant auto-coercion at the top
This commit is contained in:
parent
cfa5c2869b
commit
a0ddb8af40
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ would place `c` before `b` and after `a` in the graph.
|
|||
[[sec-option-types-gvariant]]`hm.types.gvariant`::
|
||||
This type is useful for options representing {gvariant-description}[GVariant] values. The type accepts all primitive GVariant types as well as arrays, tuples, ``maybe'' types, and dictionaries.
|
||||
+
|
||||
To create a GVariant value you can use a number of provided functions. Examples assume an option `foo.bar` of type `hm.types.gvariant`.
|
||||
Some Nix values are automatically coerced to matching GVariant value but the GVariant model is richer so you may need to use one of the provided constructor functions. Examples assume an option `foo.bar` of type `hm.types.gvariant`.
|
||||
+
|
||||
[[sec-option-types-gvariant-mkBoolean]]`hm.gvariant.mkBoolean (v: bool)`:::
|
||||
Takes a Nix value `v` to a GVariant `boolean` value. Note, Nix booleans are automatically coerced using this function. That is,
|
||||
|
|
Loading…
Reference in a new issue