Subject: [bug#73467] Wireguard: Add auto-start? field.

From: Apoorv Singh <[email-masked]>
Date: Thu, 03 Oct 2024 11:00:57 +0530

>From e17eb73fb9662e44c6cb03405ea87f7e37dbf1e3 Mon Sep 17 00:00:00 2001
From: apoorv569 <[email-masked]>
Date: Thu, 3 Oct 2024 10:51:36 +0530
Subject: [PATCH 3/4] Rename autostart? to auto-start? as other services use
 the same.

---
 gnu/services/vpn.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm
index eee7e78c6d..7e79de48a8 100644
--- a/gnu/services/vpn.scm
+++ b/gnu/services/vpn.scm
@@ -762,7 +762,7 @@ (define-record-type* <wireguard-configuration>
                       (default '()))
   (table              wireguard-configuration-table ;string
                       (default "auto"))
-  (autostart?         wireguard-configuration-autostart?
+  (auto-start?        wireguard-configuration-autostart? ;boolean
                       (default #f)))
 
 (define (wireguard-configuration-file config)
-- 
2.46.0

>From 2db03437e74407152d4e3cbd6b234baeda670fcf Mon Sep 17 00:00:00 2001
From: apoorv569 <[email-masked]>
Date: Thu, 3 Oct 2024 10:53:05 +0530
Subject: [PATCH 4/4] Document the new auto-start? field for
 wireguard-service-type.

---
 doc/guix.texi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index 52e36e4354..50676997e2 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -34396,6 +34396,10 @@ special values: @code{"off"} that disables the creation of routes
 altogether, and @code{"auto"} (the default) that adds routes to the
 default table and enables special handling of default routes.
 
+@item @code{auto-start?} (default: @code{#t}) (type: boolean)
+Whether the service should be started automatically.  If it
+is @code{#f} the service has to be started manually with @command{herd start}.
+
 @end table
 @end deftp
 
-- 
2.46.0

The following patches rename the autostart? field to auto-start? 
to follow what other services name the field and documents the 
newly added field in guix.texi file.

-- 
- Apoorv Singh
- Sent from Emacs.