Files
guix-mirror/gnu/services
Giacomo Leidi 0b8e838208 services: configuration: Add environment variable serializer.
This patch implements a general API to serialize configuration records
to list of pairs representing environment variables. The car of each
pair represents the variable name and the cdr the variable value.

* gnu/services/configuration/environment-variables.scm: New file.
(serialize-string-environment-variable)
(serialize-maybe-string-environment-variable)
(serialize-boolean-environment-variable)
(serialize-maybe-boolean-environment-variable)
(serialize-number-environment-variable)
(serialize-maybe-number-environment-variable): New variables.
(serialize-environment-variables): New variable.
* gnu/services/configuration/utils.scm: New file.
(uglify-snake-case): New variable.
* tests/services/configuration.scm: Add tests for environment serializer.
(wrong type for a field): Adjust error location.
* doc/guix.texi: Document it.

Change-Id: I81a166576f94d3c8f5bf78c82a02183689a3091c
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2026-04-12 17:23:42 +02:00
..
2025-12-03 14:38:09 +09:00
2026-03-19 07:37:06 +01:00
2025-12-03 14:38:09 +09:00
2026-01-06 22:00:50 +09:00
2026-03-07 22:28:01 +01:00
2026-03-09 23:17:24 +01:00
2026-03-29 08:59:52 -07:00
2025-11-16 10:21:52 -08:00
2025-09-21 19:20:19 +02:00
2026-01-27 11:46:03 +01:00