From patchwork Tue Jun 22 04:35:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 30613 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B3B9C27BC81; Tue, 22 Jun 2021 06:18:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6390327BC78 for ; Tue, 22 Jun 2021 06:18:16 +0100 (BST) Received: from localhost ([::1]:46490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvYnf-0002Kv-F1 for patchwork@mira.cbaines.net; Tue, 22 Jun 2021 01:18:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvY9p-0008IH-DC for guix-patches@gnu.org; Tue, 22 Jun 2021 00:37:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54063) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvY9p-0004ri-5H for guix-patches@gnu.org; Tue, 22 Jun 2021 00:37:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lvY9p-0006yL-3W for guix-patches@gnu.org; Tue, 22 Jun 2021 00:37:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48729] [PATCH v6 25/25] services: Add bitmask-service-type. Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 22 Jun 2021 04:37:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48729 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 48729@debbugs.gnu.org Cc: Raghav Gururajan , Jorge Gomez Received: via spool by 48729-submit@debbugs.gnu.org id=B48729.162433658126675 (code B ref 48729); Tue, 22 Jun 2021 04:37:05 +0000 Received: (at 48729) by debbugs.gnu.org; 22 Jun 2021 04:36:21 +0000 Received: from localhost ([127.0.0.1]:37365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvY96-0006w3-2x for submit@debbugs.gnu.org; Tue, 22 Jun 2021 00:36:20 -0400 Received: from out0.migadu.com ([94.23.1.103]:53754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvY8b-0006rJ-9D for 48729@debbugs.gnu.org; Tue, 22 Jun 2021 00:35:49 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1624336548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=It55DrDvZJqUmLN12OX68+/LyMHyMgW1ZAtohSp+pZo=; b=UMWUIBgb9vy0ixEe94TFk4CcQSdRZ2cqaSfAluVQTQM8Ex80qSMHT4UzBd+7/PrUpozevy 0vLjkpJ6ggKRflEMVaFx9qZT/eKCNqZWQbTr6e4NYgvKhBd65cX8Rh3ipnXF7a4tnEeVIA JydxBYtoP2UXagKlRDUjV0sApNOKF3RWO5f+phv4jLGt8ilW2hHTMvM0noZ0fSMi5drR+f l0Lez16gjsgh/zSXYHXwfIVlMiOF+WuhkZf+y2a/UoAG08btKEDw6JUhdY/c9H63LKit7+ XfT92Aps/eF/qx54Dym7s+22UblOiS5B1EAdxNk3Rpw7LQsyuvST6UkVVE51iQ== Date: Tue, 22 Jun 2021 00:35:17 -0400 Message-Id: <20210622043517.16769-25-rg@raghavgururajan.name> In-Reply-To: <20210622043517.16769-1-rg@raghavgururajan.name> References: <20210622043517.16769-1-rg@raghavgururajan.name> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches X-Patchwork-Original-From: Raghav Gururajan via Guix-patches via From: Raghav Gururajan X-getmail-retrieved-from-mailbox: Patches * gnu/services/vpn.scm (bitmask-service-type): New variable. Co-authored-by: Jorge Gomez --- gnu/services/vpn.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm index 2bcbf76727..085bd2c6e1 100644 --- a/gnu/services/vpn.scm +++ b/gnu/services/vpn.scm @@ -4,6 +4,8 @@ ;;; Copyright © 2017 Mathieu Othacehe ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Solene Rapenne +;;; Copyright © 2021 Raghav Gururajan +;;; Copyright © 2021 Jorge Gomez ;;; ;;; This file is part of GNU Guix. ;;; @@ -23,6 +25,7 @@ (define-module (gnu services vpn) #:use-module (gnu services) #:use-module (gnu services configuration) + #:use-module (gnu services dbus) #:use-module (gnu services shepherd) #:use-module (gnu system shadow) #:use-module (gnu packages admin) @@ -63,6 +66,22 @@ wireguard-service-type)) +;;; +;;; Bitmask VPN +;;; + +(define-public bitmask-service-type + (service-type + (name 'bitmask) + (description "Setup the @uref{https://bitmask.net, Bitmask} VPN application.") + (default-value bitmask) + (extensions + (list + ;; To configure polkit policy of bitmask. + (service-extension polkit-service-type list) + ;; To add bitmask to the system profile. + (service-extension profile-service-type list))))) + ;;; ;;; OpenVPN. ;;;