diff options
| author | Raghav Gururajan <rg@raghavgururajan.name> | 2021-07-03 01:04:09 -0400 |
|---|---|---|
| committer | Raghav Gururajan <rg@raghavgururajan.name> | 2021-07-07 10:20:28 -0400 |
| commit | 02562e2f1e1b0fcc4ae17a54885f67b38fc1be46 (patch) | |
| tree | d66899f3770fe7ad1d83fcddf9b4386077f61195 | |
| parent | b30651aecaa2684f59869fbfdcfdaf18c0134e04 (diff) | |
services: Add bitmask-service-type.
* gnu/services/vpn.scm (bitmask-service-type): New variable.
* doc/guix.texi: Document it.
Co-authored-by: jgart <jgart@dismail.de>
| -rw-r--r-- | doc/guix.texi | 9 | ||||
| -rw-r--r-- | gnu/services/vpn.scm | 19 |
2 files changed, 28 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index c4cbdef9bb7..e11f7adebb7 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -26772,6 +26772,15 @@ Defaults to @samp{()}. | |||
| 26772 | The @code{(gnu services vpn)} module provides services related to | 26772 | The @code{(gnu services vpn)} module provides services related to |
| 26773 | @dfn{virtual private networks} (VPNs). | 26773 | @dfn{virtual private networks} (VPNs). |
| 26774 | 26774 | ||
| 26775 | @subsubheading Bitmask | ||
| 26776 | |||
| 26777 | @defvr {Scheme Variable} bitmask-service-type | ||
| 26778 | A service type for the @uref{https://bitmask.net, Bitmask} VPN client. It makes | ||
| 26779 | the client available in the system and loads its polkit policy. Please note that | ||
| 26780 | the client expects an active polkit-agent, which is either run by your | ||
| 26781 | desktop-environment or should be run manually. | ||
| 26782 | @end defvr | ||
| 26783 | |||
| 26775 | @subsubheading OpenVPN | 26784 | @subsubheading OpenVPN |
| 26776 | 26785 | ||
| 26777 | It provides a @emph{client} service for your machine to connect to a | 26786 | 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 a51dda3873d..df84905eb31 100644 --- a/gnu/services/vpn.scm +++ b/gnu/services/vpn.scm | |||
| @@ -6,6 +6,8 @@ | |||
| 6 | ;;; Copyright © 2021 Solene Rapenne <solene@perso.pw> | 6 | ;;; Copyright © 2021 Solene Rapenne <solene@perso.pw> |
| 7 | ;;; Copyright © 2021 Domagoj Stolfa <ds815@gmx.com> | 7 | ;;; Copyright © 2021 Domagoj Stolfa <ds815@gmx.com> |
| 8 | ;;; Copyright © 2021 Tobias Geerinckx-Rice <me@tobias.gr> | 8 | ;;; Copyright © 2021 Tobias Geerinckx-Rice <me@tobias.gr> |
| 9 | ;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name> | ||
| 10 | ;;; Copyright © 2021 jgart <jgart@dismail.de> | ||
| 9 | ;;; | 11 | ;;; |
| 10 | ;;; This file is part of GNU Guix. | 12 | ;;; This file is part of GNU Guix. |
| 11 | ;;; | 13 | ;;; |
| @@ -25,6 +27,7 @@ | |||
| 25 | (define-module (gnu services vpn) | 27 | (define-module (gnu services vpn) |
| 26 | #:use-module (gnu services) | 28 | #:use-module (gnu services) |
| 27 | #:use-module (gnu services configuration) | 29 | #:use-module (gnu services configuration) |
| 30 | #:use-module (gnu services dbus) | ||
| 28 | #:use-module (gnu services shepherd) | 31 | #:use-module (gnu services shepherd) |
| 29 | #:use-module (gnu system shadow) | 32 | #:use-module (gnu system shadow) |
| 30 | #:use-module (gnu packages admin) | 33 | #:use-module (gnu packages admin) |
| @@ -70,6 +73,22 @@ | |||
| 70 | wireguard-service-type)) | 73 | wireguard-service-type)) |
| 71 | 74 | ||
| 72 | ;;; | 75 | ;;; |
| 76 | ;;; Bitmask. | ||
| 77 | ;;; | ||
| 78 | |||
| 79 | (define-public bitmask-service-type | ||
| 80 | (service-type | ||
| 81 | (name 'bitmask) | ||
| 82 | (description "Setup the @uref{https://bitmask.net, Bitmask} VPN application.") | ||
| 83 | (default-value bitmask) | ||
| 84 | (extensions | ||
| 85 | (list | ||
| 86 | ;; Add bitmask to the system profile. | ||
| 87 | (service-extension profile-service-type list) | ||
| 88 | ;; Configure polkit policy of bitmask. | ||
| 89 | (service-extension polkit-service-type list))))) | ||
| 90 | |||
| 91 | ;;; | ||
| 73 | ;;; OpenVPN. | 92 | ;;; OpenVPN. |
| 74 | ;;; | 93 | ;;; |
| 75 | 94 | ||
