guix/gnu
Bruno Victal 6f48efa9b8
services: configuration: Add user-defined sanitizer support.
This changes the 'custom-serializer' field into a generic
'extra-args' field that can be extended to support new literals.
Within extra-args, the literals 'sanitizer' and 'serializer' allow
for user-defined sanitization and serialization procedures respectively.
The 'empty-serializer' was also added as a literal to be used as before.

To prevent confusion between the new “explicit” style of specifying
a sanitizer, and the old “implicit” style, the latter has been
deprecated, and a warning is issued if it is encountered.

* gnu/services/configuration.scm (define-configuration-helper):
Rename 'custom-serializer' to 'extra-args'.  Add support for literals
'sanitizer', 'serializer' and 'empty-serializer'.  Rename procedure
'field-sanitizer' to 'default-field-sanitizer' to avoid syntax clash.
Only define default field sanitizers if user-defined ones are absent.
(normalize-extra-args): New variable.
(<configuration-field>)[sanitizer]: New field.
* doc/guix.texi (Complex Configurations): Document the newly added
literals.
* tests/services/configuration.scm: Add tests for the new literals.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2023-04-02 12:31:51 +02:00
..
bootloader
build file-systems: Validate 'no-diratime flag. 2023-02-26 01:00:07 +01:00
home home: services: Export home-xmodmap-service-type and configuration. 2023-03-26 19:57:07 +02:00
installer
machine
packages gnu: Add python-clingraph. 2023-04-02 11:19:21 +02:00
services services: configuration: Add user-defined sanitizer support. 2023-04-02 12:31:51 +02:00
system linux-container: Remove hosts-service-type when network is shared. 2023-03-26 14:15:16 +01:00
tests services: pam-limits-service-type: Deprecate file-like object support in favour for lists as service value. 2023-03-30 23:18:16 +02:00
artwork.scm
bootloader.scm
ci.scm
compression.scm
home.scm home: 'home-environment-with-provenance' uses the HE location info. 2023-03-20 09:14:23 +04:00
image.scm
installer.scm
local.mk gnu: Separate potassco packages into their own module. 2023-04-02 11:19:21 +02:00
machine.scm
packages.scm
services.scm services: etc-service: Deprecate etc-service procedure. 2023-03-16 12:37:03 +01:00
system.scm system: Remove obsolete GUIX_LOCPATH workaround. 2023-03-30 23:18:16 +02:00
tests.scm