nixos/modules: Allow options to be coerced to a string for convenience
This commit is contained in:
parent
20131348db
commit
1e6a84b7af
1 changed files with 2 additions and 0 deletions
|
@ -665,6 +665,8 @@ rec {
|
|||
definitions = map (def: def.value) res.defsFinal;
|
||||
files = map (def: def.file) res.defsFinal;
|
||||
inherit (res) isDefined;
|
||||
# This allows options to be correctly displayed using `${options.path.to.it}`
|
||||
__toString = _: showOption loc;
|
||||
};
|
||||
|
||||
# Merge definitions of a value of a given type.
|
||||
|
|
Loading…
Reference in a new issue