diff --git a/gnu/services/configuration.scm b/gnu/services/configuration.scm index 72b1d1cec6..f23840ee6d 100644 --- a/gnu/services/configuration.scm +++ b/gnu/services/configuration.scm @@ -44,6 +44,7 @@ (define-module (gnu services configuration) configuration-error? define-configuration + define-configuration/no-serialization no-serialization serialize-configuration @@ -222,6 +223,13 @@ (define-configuration-helper #t #'(_ stem (field (field-type def ...) doc custom-serializer ...) ...)))))) +(define-syntax-rule (define-configuration/no-serialization + stem (field (field-type def ...) + doc custom-serializer ...) ...) + (define-configuration stem (field (field-type def ...) + doc custom-serializer ...) ... + (no-serialization))) + (define (empty-serializer field-name val) "") (define serialize-package empty-serializer)