1
Fork 0
mirror of https://github.com/RGBCube/hjem synced 2025-10-13 21:22:17 +00:00

modules/common/user: expand on and correct generator option description

This commit is contained in:
éclairevoyant 2025-07-05 08:29:09 -04:00
parent 386d56af28
commit 4c6022398a
No known key found for this signature in database
GPG key ID: E3813AEAA02DB54B

View file

@ -61,7 +61,11 @@
generator = lib.mkOption { generator = lib.mkOption {
type = nullOr (functionTo (either options.source.type options.text.type)); type = nullOr (functionTo (either options.source.type options.text.type));
default = null; default = null;
description = "Function that when applied to `value` will create the `text` of the file."; description = ''
Function that when applied to `value` will create the `source` or `text` of the file.
Detection is automatic, as we check if the `generator` generates a derivation or a string after applying to `value`.
'';
example = literalExpression "lib.generators.toGitINI"; example = literalExpression "lib.generators.toGitINI";
}; };