guix/gnu
Xinglu Chen b3e99d3399
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>
2021-05-08 00:50:39 -04:00
..
bootloader bootloader: grub: Fix typo in docstring. 2021-04-10 14:11:33 +02:00
build file-systems: Rewrite comment. 2021-05-04 15:40:32 +02:00
installer tests: Add gui-uefi-installed-os test. 2021-04-28 15:51:12 +02:00
machine
packages gnu: linux-libre: Default to schedutil cpufreq governor on arm and arm64. 2021-05-07 15:23:42 -07:00
services services: configuration: Allow specifying a custom serializer. 2021-05-08 00:50:39 -04:00
system system: vm: Add a memory-size argument to system-docker-image. 2021-04-12 14:12:49 +02:00
tests tests: Add gui-uefi-installed-os test. 2021-04-28 15:51:12 +02:00
artwork.scm
bootloader.scm
ci.scm ci: Add custom subset. 2021-04-28 11:53:33 +02:00
image.scm
installer.scm
local.mk gnu: Add tla2tools. 2021-05-05 16:56:46 +02:00
machine.scm
packages.scm
services.scm services: Support DELETE in MODIFY-SERVICES macro. 2021-04-12 17:49:07 +02:00
system.scm
tests.scm tests: Support package extensions in the backdoor REPL. 2021-04-12 18:42:22 +02:00