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 bootloader: grub: Add removable grub-efi bootloader option. 2022-06-06 22:43:30 +02:00
build services: jami: Modernize to adjust to Shepherd 0.9+ changes. 2022-06-10 23:52:33 -04:00
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 services: jami: Modernize to adjust to Shepherd 0.9+ changes. 2022-06-10 23:52:33 -04:00
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 packages: Use SRFI-71 instead of SRFI-11. 2022-06-06 22:43:30 +02:00
services.scm gnu: services: Update setuid service description. 2022-05-29 02:00:19 +02:00
system.scm system: <operating-system> compiler truly honors the 'system' argument. 2022-06-15 00:25:20 +02:00
tests.scm