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
..
2026-03-10 22:53:54 +01:00
2026-04-10 14:55:04 +09:00
2025-04-21 23:55:50 +02:00
2026-04-12 17:23:42 +02:00
2025-12-11 15:43:16 +01:00
2017-03-16 22:50:14 +01:00
2020-08-29 16:24:17 +02:00
2014-03-30 12:02:10 +02:00
2022-08-28 23:37:28 +02:00
2017-01-26 13:49:56 +01:00
2022-07-13 10:49:40 -04:00
2025-09-18 13:44:12 +09:00
2025-10-12 22:22:01 +02:00
2024-08-21 00:52:39 +02:00
2021-01-16 11:51:03 +00:00
2026-03-25 23:51:26 +01:00
2016-05-04 23:35:55 +02:00
2025-10-29 11:34:28 +09:00
2024-04-15 22:36:42 +02:00
2025-08-31 12:39:24 +02:00
2025-08-31 12:39:24 +02:00
2025-10-30 16:19:50 +09:00
2026-03-29 22:20:59 +02:00
2017-07-03 23:51:23 +02:00
2026-01-25 21:23:25 +01:00
2026-03-29 22:11:38 +02:00
2026-04-10 14:46:59 +09:00
2024-07-18 17:31:19 +02:00
2025-12-03 14:38:09 +09:00
2025-11-18 13:05:49 +01:00
2025-10-05 20:30:45 +02:00
2023-08-21 16:16:47 +02:00
2025-10-30 16:19:50 +09:00
2023-04-21 16:16:38 +02:00
2026-04-10 14:55:04 +09:00
2026-03-17 18:45:40 +01:00
2025-09-18 13:44:12 +09:00
2025-10-19 21:29:38 +02:00
2022-09-04 23:10:10 +02:00
2024-05-13 16:31:35 +02:00
2025-10-17 12:23:54 +02:00
2023-04-21 16:16:38 +02:00
2025-11-21 14:38:44 +01:00
2025-06-22 23:45:36 +02:00
2023-09-26 17:36:57 +02:00
2023-04-21 16:16:38 +02:00
2025-10-17 12:23:54 +02:00
2021-02-22 12:07:45 +01:00
2023-11-15 18:29:37 +01:00
2025-10-17 12:23:54 +02:00
2025-10-17 12:23:54 +02:00
2026-02-06 20:49:01 +01:00
2023-04-21 17:09:46 +02:00
2023-04-21 16:16:38 +02:00
2026-02-12 23:03:31 +01:00
2025-05-19 10:07:24 +09:00
2020-09-16 16:04:01 +02:00
2024-12-14 01:28:49 +01:00
2023-12-06 23:50:04 +01:00
2025-02-09 18:20:41 +01:00
2025-10-11 21:57:59 +09:00
2025-09-18 13:44:12 +09:00
2025-01-16 22:32:11 +01:00
2022-06-04 12:04:24 +02:00
2022-03-06 22:49:46 +01:00
2022-07-08 13:51:34 +01:00
2021-04-12 18:42:22 +02:00
2025-10-29 11:51:24 +09:00
2025-11-14 16:42:16 +09:00
2024-08-31 10:42:16 +02:00
2025-03-05 00:28:49 +01:00
2021-11-16 14:34:28 +01:00
2025-09-18 13:44:12 +09:00
2025-09-18 13:44:12 +09:00
2026-04-10 15:03:18 +09:00
2026-04-10 18:24:56 -07:00
2025-09-23 14:53:36 +02:00
2022-12-12 15:03:05 +01:00
2025-03-26 17:57:44 +01:00
2025-11-03 20:06:14 +08:00
2025-09-21 18:47:23 +02:00
2025-02-24 23:33:51 +01:00
2026-03-29 22:32:57 +02:00
2025-09-18 13:44:12 +09:00
2019-03-24 00:13:53 +01:00
2019-06-14 22:09:38 +02:00
2025-03-05 00:28:49 +01:00
2018-11-12 23:37:13 +01:00
2022-06-26 23:19:14 +02:00
2024-04-15 22:36:42 +02:00
2024-12-30 00:51:57 +01:00
2025-10-06 10:42:08 +02:00
2023-08-18 16:10:08 +02:00
2026-02-10 11:36:16 +01:00
2026-03-10 22:53:54 +01:00
2026-01-28 17:45:33 +00:00
2024-03-09 18:55:49 +01:00
2025-10-30 16:19:51 +09:00
2022-10-22 01:46:55 +02:00
2012-04-19 23:09:55 +02:00
2026-01-25 21:23:25 +01:00
2026-01-29 13:51:06 +09:00
2022-12-13 17:46:39 +01:00
2019-06-14 21:57:39 +02:00
2025-01-08 23:03:04 +01:00
2024-04-15 22:36:42 +02:00
2019-05-07 12:18:44 +02:00
2017-11-17 10:47:49 +01:00