all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: help-guix@gnu.org
Cc: guix-devel@gnu.org
Subject: Re: Help with OpenVPN Plugin for Network Manager
Date: Sat, 27 Apr 2019 08:54:15 +0100	[thread overview]
Message-ID: <87mukbq3x4.fsf@cbaines.net> (raw)
In-Reply-To: <1c1f4d25d9213953f0014fd1dd09a4fb@disroot.org>

[-- Attachment #1: Type: text/plain, Size: 1702 bytes --]


Raghav Gururajan <rvgn@disroot.org> writes:

> Hello Guix!
>
> The "Services" part of my current system config is the following:
>
> (services (cons* (service gnome-desktop-service-type)
>  %desktop-services))
>
> How should I modify the above to edit Network Manager's Configuration to include and enable "network-manager-openvpn" plugin?
>
> I tried adding "(service network-manager-service-type (network-manager-configuration (vpn-plugins network-manager-openvpn)))" but I got an error that the service is used more than once.

%desktop-services includes a service of the network-manager-service-type
already, which is why you're getting that error.

Instead of adding another service of that type with the intended
configuration, what you can do is change the existing service.

Something like the following should help.

  (modify-services %desktop-services
    (network-manager-service-type
     config => (network-manager-configuration
                (inherit config)
                (vpn-plugins
                 (list network-manager-openvpn)))))

This would replace %desktop-services in your configuration, as what the
modify-services function does, is that %desktop-services (in this case),
and apply the modifications that are described.

So the services part of your configuration would look like:

  (services (cons* (service gnome-desktop-service-type)
                   (modify-services %desktop-services
                   (network-manager-service-type
                    config => (network-manager-configuration
                               (inherit config)
                               (vpn-plugins
                                (list network-manager-openvpn)))))))

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

  reply	other threads:[~2019-04-27  7:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-27  3:58 Help with OpenVPN Plugin for Network Manager Raghav Gururajan
2019-04-27  7:54 ` Christopher Baines [this message]
2019-05-06  3:27 ` Chris Marusich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mukbq3x4.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=guix-devel@gnu.org \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.