[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#48729] [PATCH v8 25/25] services: Add bitmask-service-type.
From: |
Raghav Gururajan |
Subject: |
[bug#48729] [PATCH v8 25/25] services: Add bitmask-service-type. |
Date: |
Sat, 3 Jul 2021 02:05:23 -0400 |
* gnu/services/vpn.scm (bitmask-service-type): New variable.
* doc/guix.texi: Document it.
Co-authored-by: jgart <jgart@dismail.de>
---
doc/guix.texi | 7 +++++++
gnu/services/vpn.scm | 19 +++++++++++++++++++
2 files changed, 26 insertions(+)
diff --git a/doc/guix.texi b/doc/guix.texi
index 8681645021..d06ad1635c 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -26769,6 +26769,13 @@ Defaults to @samp{()}.
The @code{(gnu services vpn)} module provides services related to
@dfn{virtual private networks} (VPNs).
+@subsubheading Bitmask
+
+@defvr {Scheme Variable} bitmask-service-type
+A service type for the @uref{https://bitmask.net, Bitmask} VPN application.
+It makes the application ready for use.
+@end defvr
+
@subsubheading OpenVPN
It provides a @emph{client} service for your machine to connect to a
diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm
index a51dda3873..df84905eb3 100644
--- a/gnu/services/vpn.scm
+++ b/gnu/services/vpn.scm
@@ -6,6 +6,8 @@
;;; Copyright © 2021 Solene Rapenne <solene@perso.pw>
;;; Copyright © 2021 Domagoj Stolfa <ds815@gmx.com>
;;; Copyright © 2021 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
+;;; Copyright © 2021 jgart <jgart@dismail.de>
;;;
;;; 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.
+;;;
+
+(define-public bitmask-service-type
+ (service-type
+ (name 'bitmask)
+ (description "Setup the @uref{https://bitmask.net, Bitmask} VPN
application.")
+ (default-value bitmask)
+ (extensions
+ (list
+ ;; Add bitmask to the system profile.
+ (service-extension profile-service-type list)
+ ;; Configure polkit policy of bitmask.
+ (service-extension polkit-service-type list)))))
+
;;;
;;; OpenVPN.
;;;
--
2.32.0
- [bug#48729] [PATCH v8 24/25] gnu: Add bitmask., (continued)
- [bug#48729] [PATCH v8 24/25] gnu: Add bitmask., Raghav Gururajan, 2021/07/03
- [bug#48729] [PATCH v8 14/25] gnu: Add go-github-com-operatorfoundation-monolith-go., Raghav Gururajan, 2021/07/03
- [bug#48729] [PATCH v8 18/25] gnu: Add go-github-com-riobard-go-bloom., Raghav Gururajan, 2021/07/03
- [bug#48729] [PATCH v8 19/25] gnu: Add go-github-com-shadowsocks-go-shadowsocks2., Raghav Gururajan, 2021/07/03
- [bug#48729] [PATCH v8 21/25] gnu: Add go-github-com-kataras-golog., Raghav Gururajan, 2021/07/03
- [bug#48729] [PATCH v8 15/25] gnu: Add go-github-com-opentracing-opentracing-go., Raghav Gururajan, 2021/07/03
- [bug#48729] [PATCH v8 20/25] gnu: Add go-github-com-kataras-pio., Raghav Gururajan, 2021/07/03
- [bug#48729] [PATCH v8 11/25] gnu: Add go-github-com-op-go-logging., Raghav Gururajan, 2021/07/03
- [bug#48729] [PATCH v8 22/25] gnu: Add go-github-com-operatorfoundation-shapeshifter-transports., Raghav Gururajan, 2021/07/03
- [bug#48729] [PATCH v8 17/25] gnu: Add go-github-com-aead-chacha20., Raghav Gururajan, 2021/07/03
- [bug#48729] [PATCH v8 25/25] services: Add bitmask-service-type.,
Raghav Gururajan <=