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/services
Maxim Cournoyer b7297d66c5
services: configuration: Add a define-maybe/no-serialization syntax.
Before this change, using define-maybe along define-configuration with the
no-serialization syntactic keyword would result in the following warning:

  warning: possibly unbound variable `VARIABLE-NAME'

This change introduces the define-maybe/no-serialization variant that does
away with defining a serialization helper procedure, which makes it possible
to avoid the above warning.

* gnu/services/configuration.scm (define-maybe/no-serialization): New syntax.
(define-maybe-helper): New procedure.
(define-maybe): Define syntax using the above procedure.
* tests/services/configuration.scm (tests): Fix module name.
(custom-number-serializer): Do not print to standard output.
(maybe-number?, serialize-maybe-number): New procedures defined via the
define-maybe macro.
(config-with-maybe-number): New configuration.
(serialize-number): New procedure.
("maybe value serialization"): New test.
(maybe-string?): New procedure defined via the define-maybe/no-serialization
macro.
(config-with-maybe-string/no-serialization): New configuration.
("maybe value without serialization no procedure bound"): New test.
2021-05-17 23:27:39 -04:00
..
admin.scm
audio.scm
auditd.scm
authentication.scm
avahi.scm
base.scm
certbot.scm
cgit.scm
ci.scm
configuration.scm services: configuration: Add a define-maybe/no-serialization syntax. 2021-05-17 23:27:39 -04:00
cuirass.scm services: cuirass: Use "/tmp" database host. 2021-04-14 16:09:35 +02:00
cups.scm
databases.scm services: mysql: Add extra-environment as configuration option. 2021-04-27 20:45:35 +02:00
dbus.scm
desktop.scm
dict.scm
dns.scm
docker.scm services: docker: Disable configuration serialization. 2021-05-08 01:04:31 -04:00
file-sharing.scm
games.scm
ganeti.scm
getmail.scm
guix.scm services: guix-build-coordinator: Fix queue builds state directory. 2021-05-02 09:56:42 +01:00
herd.scm
hurd.scm
kerberos.scm
linux.scm services: Add a service for rasdaemon. 2021-04-24 12:30:01 -04:00
lirc.scm
mail.scm services: dovecot: Add ‘managesieve-sieve-capability’ option. 2021-05-06 11:31:48 +02:00
mcron.scm
messaging.scm
monitoring.scm
networking.scm services: ipfs: Tweak description. 2021-04-12 18:44:09 +02:00
nfs.scm
nix.scm services: nix: Add /bin/sh to build-sandbox-paths. 2021-04-26 20:03:55 +03:00
pam-mount.scm
pm.scm
rsync.scm
science.scm
sddm.scm
security-token.scm
shepherd.scm
sound.scm
spice.scm services: spice-vdagent: Clear the socket file prior to starting. 2021-05-06 16:51:49 -04:00
ssh.scm
syncthing.scm
sysctl.scm
telephony.scm
version-control.scm
virtualization.scm
vpn.scm services: wireguard: Add keep-alive support. 2021-04-20 14:32:53 +02:00
web.scm
xorg.scm