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:
parent
386d56af28
commit
4c6022398a
1 changed files with 5 additions and 1 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue