From 66df3296c4a8012c745c792cd95edfe2aad81031 Mon Sep 17 00:00:00 2001 From: 45mg <45mg.writes@gmail.com> Date: Fri, 27 Dec 2024 08:29:52 -0500 Subject: services: dnsmasq: Allow custom Shepherd provision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow users to have multiple dnsmasq instances by specifying different `provision` values for the corresponding Shepherd services, similar to what is done with `static-networking-service-type`. * gnu/services/dns.scm ()[provision]: new option. (dnsmasq-shepherd-service): Use supplied provision value. * doc/guix.texi (DNS Services)[dnsmasq-configuration]: Document it. Change-Id: I78c7f015cb1db239a600bc5373b2fd80e8b9b9f4 Signed-off-by: Ludovic Courtès Reviewed-by: Maxim Cournoyer --- doc/guix.texi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc/guix.texi') diff --git a/doc/guix.texi b/doc/guix.texi index 924f13f0f6..605f822d2b 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -34169,6 +34169,10 @@ Data type representing the configuration of dnsmasq. @item @code{package} (default: @var{dnsmasq}) Package object of the dnsmasq server. +@item @code{provision} (default: @code{'(dnsmasq)}) +A list of symbols for the Shepherd service corresponding to this dnsmasq +configuration. + @item @code{no-hosts?} (default: @code{#f}) When true, don't read the hostnames in /etc/hosts. -- cgit v1.2.3