diff options
author | EuAndreh <eu@euandre.org> | 2022-11-29 20:39:29 -0300 |
---|---|---|
committer | 宋文武 <iyzsong@member.fsf.org> | 2022-12-09 10:53:50 +0800 |
commit | 8d6feb4b10752fa0261d54d2d906642a5fcc08fa (patch) | |
tree | e30fe96d034a64398bfd900d00da86385378fbaf /gnu/services/vpn.scm | |
parent | 898f9adc20e7d702d73ec24c337d847a41126906 (diff) | |
download | guix-8d6feb4b10752fa0261d54d2d906642a5fcc08fa.tar.gz |
services: wireguard: Use the parameterized wireguard package.
* gnu/services/vpn.scm (wireguard-activation): Use the "wg" binary from the package given to <wireguard-configuration>. Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
Diffstat (limited to 'gnu/services/vpn.scm')
-rw-r--r-- | gnu/services/vpn.scm | 4 |
1 files 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 @@ PostUp = ~a set %i private-key ~a (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 @@ PostUp = ~a set %i private-key ~a (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 |