services: configuration: Derive the default value from the package variable.
authorXinglu Chen <public@yoctocell.xyz>
Wed, 9 Jun 2021 13:06:27 +0000 (15:06 +0200)
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 2 Aug 2021 18:16:23 +0000 (14:16 -0400)
commit8e1f94421873777c6bb0b83daa4f81cbacc8b3ff
treed3f12240903c4b2631849b2eff660ba0aa55dfec
parentad945029a2dbd1fb741be573f13e42c061e72d0f
services: configuration: Derive the default value from the package variable.

If the type of a configuration field is a package, show the name of its
package *variable* as the default value.

* gnu/services/configuration.scm (generate-documentation){show-default}
{package->symbol}: New nested procedures.  Use them to format the field
entries.

Co-authored-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
gnu/services/configuration.scm