me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/gnu
Bruno Victal 4c8030258b
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-12 08:26:24 -04:00
..
bootloader
build
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-12 08:26:24 -04:00
services services: configuration: Add user-defined sanitizer support. 2023-04-12 08:26:24 -04:00
system linux-container: Remove hosts-service-type when network is shared. 2023-03-26 14:15:16 +01:00
tests Merge branch 'master' into staging 2023-03-31 10:48:54 -04: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-12 08:26:24 -04: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