guix/gnu
Attila Lendvai e11517052b
services: configuration: Support (field1 maybe-number "") format.
As opposed to explicitly using 'disabled as value, or using the
(field1 (maybe-number) "") format.

It's mostly the work of Maxime Devos shared under #54674, with some
modifications by Attila Lendvai.

* gnu/services/configuration.scm (normalize-field-type+def): New function.
(define-configuration-helper) (define-configuration): Support new field
format.
* tests/services/configuration.scm (config-with-maybe-number->string): New
function.
("maybe value serialization of the instance"): New test.
("maybe value serialization of the instance, unspecified"): New test.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-06-15 00:25:21 +02:00
..
bootloader
build
home
installer
machine
packages gnu: PostgreSQL: Promote version 14 to the default. 2022-06-14 23:33:54 +02:00
services services: configuration: Support (field1 maybe-number "") format. 2022-06-15 00:25:21 +02:00
system gnu: install: Add uvesafb service only on targets that support v86d. 2022-06-07 11:49:18 +02:00
tests
artwork.scm
bootloader.scm
ci.scm
home.scm
image.scm
installer.scm
local.mk gnu: TimescaleDB: Update to 2.7.0. 2022-06-14 23:33:52 +02:00
machine.scm
packages.scm
services.scm
system.scm system: <operating-system> compiler truly honors the 'system' argument. 2022-06-15 00:25:20 +02:00
tests.scm