* Help with OpenVPN Plugin for Network Manager
@ 2019-04-27 3:58 Raghav Gururajan
2019-04-27 7:54 ` Christopher Baines
2019-05-06 3:27 ` Chris Marusich
0 siblings, 2 replies; 3+ messages in thread
From: Raghav Gururajan @ 2019-04-27 3:58 UTC (permalink / raw)
To: help-guix; +Cc: guix-devel
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.
Thank you!
Regards,
RG.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help with OpenVPN Plugin for Network Manager
2019-04-27 3:58 Help with OpenVPN Plugin for Network Manager Raghav Gururajan
@ 2019-04-27 7:54 ` Christopher Baines
2019-05-06 3:27 ` Chris Marusich
1 sibling, 0 replies; 3+ messages in thread
From: Christopher Baines @ 2019-04-27 7:54 UTC (permalink / raw)
To: help-guix; +Cc: guix-devel
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Help with OpenVPN Plugin for Network Manager
2019-04-27 3:58 Help with OpenVPN Plugin for Network Manager Raghav Gururajan
2019-04-27 7:54 ` Christopher Baines
@ 2019-05-06 3:27 ` Chris Marusich
1 sibling, 0 replies; 3+ messages in thread
From: Chris Marusich @ 2019-05-06 3:27 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: guix-devel, help-guix
[-- Attachment #1: Type: text/plain, Size: 1052 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.
You need to replace the existing network-manager-service-type with a new
copy that has the configuration you want. One way to do that is to use
the modify-services form, which is documented in the manual in the
section "Using the Configuration System":
http://guix.info/manual/en/html_node/Using-the-Configuration-System.html
See also the "Service Reference" section:
http://guix.info/manual/en/html_node/Service-Reference.html#Service-Reference
Hope that helps!
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-06 3:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-27 3:58 Help with OpenVPN Plugin for Network Manager Raghav Gururajan
2019-04-27 7:54 ` Christopher Baines
2019-05-06 3:27 ` Chris Marusich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).