unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#59704] [PATCH 1/1] services: wireguard: Use the parameterized wireguard package.
@ 2022-11-29 23:39 EuAndreh via Guix-patches via
  2022-12-09  2:54 ` bug#59704: " 宋文武 via Guix-patches via
  0 siblings, 1 reply; 2+ messages in thread
From: EuAndreh via Guix-patches via @ 2022-11-29 23:39 UTC (permalink / raw)
  To: 59704; +Cc: EuAndreh

* gnu/services/vpn.scm (wireguard-activation): Use the "wg" binary from
  the package given to <wireguard-configuration>.
---

Notes:
    As of now, there is no other reference to the global "wireguard-tools"
    package in the gnu/services/vpn.scm file.

 gnu/services/vpn.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm
index def381987b..7b3bb8903c 100644
--- a/gnu/services/vpn.scm
+++ b/gnu/services/vpn.scm
@@ -833,7 +833,7 @@ (define (peer->config peer)
 
 (define (wireguard-activation config)
   (match-record config <wireguard-configuration>
-    (private-key)
+    (private-key wireguard)
     #~(begin
         (use-modules (guix build utils)
                      (ice-9 popen)
@@ -842,7 +842,7 @@ (define (wireguard-activation config)
         (unless (file-exists? #$private-key)
           (let* ((pipe
                   (open-input-pipe (string-append
-                                    #$(file-append wireguard-tools "/bin/wg")
+                                    #$(file-append wireguard "/bin/wg")
                                     " genkey")))
                  (key (read-line pipe)))
             (call-with-output-file #$private-key
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#59704: [PATCH 1/1] services: wireguard: Use the parameterized wireguard package.
  2022-11-29 23:39 [bug#59704] [PATCH 1/1] services: wireguard: Use the parameterized wireguard package EuAndreh via Guix-patches via
@ 2022-12-09  2:54 ` 宋文武 via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: 宋文武 via Guix-patches via @ 2022-12-09  2:54 UTC (permalink / raw)
  To: EuAndreh; +Cc: 59704-done

EuAndreh <eu@euandre.org> writes:

> * gnu/services/vpn.scm (wireguard-activation): Use the "wg" binary from
>   the package given to <wireguard-configuration>.
> ---
>
> Notes:
>     As of now, there is no other reference to the global "wireguard-tools"
>     package in the gnu/services/vpn.scm file.

Pushed, thank you!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-09  2:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-29 23:39 [bug#59704] [PATCH 1/1] services: wireguard: Use the parameterized wireguard package EuAndreh via Guix-patches via
2022-12-09  2:54 ` bug#59704: " 宋文武 via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).