Subject: [PATCH v7 25/25] services: Add bitmask-service-type.

From: Raghav Gururajan <[email-masked]>
Date: Thu, 1 Jul 2021 00:57:28 -0400

* gnu/services/vpn.scm (bitmask-service-type): New variable.

Co-authored-by: jgart <[email-masked]>
---
 gnu/services/vpn.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm
index a51dda3873..55b4bd0b16 100644
--- a/gnu/services/vpn.scm
+++ b/gnu/services/vpn.scm
@@ -6,6 +6,8 @@
 ;;; Copyright © 2021 Solene Rapenne <[email-masked]>
 ;;; Copyright © 2021 Domagoj Stolfa <[email-masked]>
 ;;; Copyright © 2021 Tobias Geerinckx-Rice <[email-masked]>
+;;; Copyright © 2021 Raghav Gururajan <[email-masked]>
+;;; Copyright © 2021 jgart <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -25,6 +27,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)
@@ -69,6 +72,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.
 ;;;
-- 
2.32.0