From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EDAYGxequV5lYgAA0tVLHw (envelope-from ) for ; Mon, 11 May 2020 19:40:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qHJYHiWquV4hOwAAbx9fmQ (envelope-from ) for ; Mon, 11 May 2020 19:40:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1543A940F90 for ; Mon, 11 May 2020 19:40:19 +0000 (UTC) Received: from localhost ([::1]:43394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYEHj-0000wq-Sd for larch@yhetil.org; Mon, 11 May 2020 15:40:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYEFY-0006Te-UE for guix-patches@gnu.org; Mon, 11 May 2020 15:38:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41808) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYEFW-0007Rk-Gm for guix-patches@gnu.org; Mon, 11 May 2020 15:38:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jYEFW-0007QM-Cn for guix-patches@gnu.org; Mon, 11 May 2020 15:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41080] [PATCH] doc: cookbook: add entry for Wireguard VPN connection on Guix System References: <20200504154915.3963-1-sirmacik@wioo.waw.pl> In-Reply-To: <20200504154915.3963-1-sirmacik@wioo.waw.pl> Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 11 May 2020 19:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41080 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41080@debbugs.gnu.org Received: via spool by 41080-submit@debbugs.gnu.org id=B41080.158922583928484 (code B ref 41080); Mon, 11 May 2020 19:38:02 +0000 Received: (at 41080) by debbugs.gnu.org; 11 May 2020 19:37:19 +0000 Received: from localhost ([127.0.0.1]:53354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYEEo-0007PM-PL for submit@debbugs.gnu.org; Mon, 11 May 2020 15:37:18 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:41937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYEEm-0007P7-0W for 41080@debbugs.gnu.org; Mon, 11 May 2020 15:37:16 -0400 Received: from webmail.gandi.net (webmail18.sd4.0x35.net [10.200.201.18]) (Authenticated sender: brice@waegenei.re) by relay8-d.mail.gandi.net (Postfix) with ESMTPA id 6332D1BF20C for <41080@debbugs.gnu.org>; Mon, 11 May 2020 19:37:09 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 11 May 2020 19:37:08 +0000 From: Brice Waegeneire Message-ID: <84b581259bee7a91a1c1676efc9c30d6@waegenei.re> X-Sender: brice@waegenei.re User-Agent: Roundcube Webmail/1.3.8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 X-Spam-Score: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Scan-Result: default: False [-1.01 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.54003481883124]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.07), country: US(-0.00), ip: 209.51.188.17(-0.54)]; TO_DN_NONE(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[brice@waegenei.re,guix-patches-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[gnu.org:url,guix.info:url]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[41080@debbugs.gnu.org]; DMARC_NA(0.00)[waegenei.re]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; DNSWL_BLOCKED(0.00)[209.51.188.17:from]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; RCVD_COUNT_SEVEN(0.00)[8]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: bvd/K3GL0uPA Hello Marcin, Thank you for the patch! > +@lisp > +(use-modules (gnu)) > +(use-package-modules vpn) > + > +(operating-system > +;; … > +(packages > + (append (map specification->package > + '("wireguard-linux-compat" "wireguard-tools")) > + %base-packages))) > +@end lisp There is no use to put "wireguard-linux-compat" in the packages field, instead it should be in the kernel-loadable-modules field to be loadable by modprobe and an in the kernel-module-loader-service for being autoloaded at boot with an entry like: “(simple-service 'wireguard-module kernel-module-loader-service-type '("wireguard"))” Also note that all the above is only necessary with a Linux-libre kernel >5.6, after that wireguard is built into it. https://issues.guix.info/issue/41192 should fix the wg-quick issue, can you try it and update the documentation accordingly. About this script can you specify that it's a “very quick and dirty bash script” as wireguard's docs says and that it should probably be avoided except for testing and such. Also can you resend the patch as a git-patch instead of a plain diff, you can find the related guidelines in the manual[0]. [0]: https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html#Submitting-Patches Cheers, - Brice