aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/ganeti.scm
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-05-07 22:39:54 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-05-08 00:50:39 -0400
commitb3e99d33990119276e895909ff8a3aa176cf8a2e (patch)
treecbc1d125f2f30f7d1d111761448bb598742fe120 /gnu/services/ganeti.scm
parent3f9a12dc082b20426fc740416601b69ea1897193 (diff)
downloadguix-b3e99d33990119276e895909ff8a3aa176cf8a2e.tar.gz
guix-b3e99d33990119276e895909ff8a3aa176cf8a2e.zip
services: configuration: Allow specifying a custom serializer.
In some cases, rather than globally disabling serialization, it may be more appropriate to disable or otherwise alter the serialization procedure of a specific field. In large module, multiple configurations may also exist that would need to alter the default serialization procedure, which is named after the field type. Being able to specify a per-field serialization procedure provides more flexibility. * gnu/services/configuration.scm (define-configuration): Add an optional pattern variable to allow specifying a custom serialization procedure. (define-configuration-helper) <field-serializer>: Use it to transform the syntax. (empty-serializer): New procedure. (serialize-package): Alias to ‘empty-serializer’. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/services/ganeti.scm')
0 files changed, 0 insertions, 0 deletions