nixos/modules: Allow options to be coerced to a string for convenience

This commit is contained in:
Silvan Mosberger
2021-12-08 21:41:17 +01:00
committed by pennae
parent 132a72bc3b
commit 6d80d3c964
+2
View File
@@ -587,6 +587,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.