From 8d6feb4b10752fa0261d54d2d906642a5fcc08fa Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 29 Nov 2022 20:39:29 -0300 Subject: [PATCH] services: wireguard: Use the parameterized wireguard package. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/services/vpn.scm (wireguard-activation): Use the "wg" binary from the package given to . Signed-off-by: 宋文武 --- 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 - (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