From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Baines Subject: Re: Help with OpenVPN Plugin for Network Manager Date: Sat, 27 Apr 2019 08:54:15 +0100 Message-ID: <87mukbq3x4.fsf@cbaines.net> References: <1c1f4d25d9213953f0014fd1dd09a4fb@disroot.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: In-reply-to: <1c1f4d25d9213953f0014fd1dd09a4fb@disroot.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org Cc: guix-devel@gnu.org List-Id: guix-devel.gnu.org --=-=-= Content-Type: text/plain Raghav Gururajan 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlzECqdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XdO6Q/9GZRo2mx2TCiMg2tyoiGaXGJYCYm5u49EiZ/AT/9pcHmvcS4ZKDmRou2Q KEr541KYxZ8nSSQhlHKqresi59gUvSqrXFTv5hJx6YtJMFbon9I3Kx/voWklq5Be 5fc+YH2cOm6kN24ATDlHJ6G/E1aFuywWMSaK53URYkeF5NYG4z8SIuISs+hqmMBb X2uoFQ+QRtI0cqAGdKgbC9pu4ZVpRXLJXVeFfE2SzaH8bRNwfo5FFHhhPydMu1d8 pDDQlKxmlavxIfWN/al6TlfjUefgZvl0fKYgfla6FEu40PqyHuyDdEH9YEnY6NN1 I0s5BvW6N12WJi4HNZSdNOzhu/VCJK6/30eoUljDGjBbQf416jb2nsmWPLzDojxi v/SY24vw/HneTdZEy1QI+9KzpFwfSYiGb5wftPNQ1umX14tmVKINHmjp5LKSwIDF KYoFeSPGGxcCGR1w2T3JLDEmGcCH9rVAtJj4Dg4kuuhAiwVYccgXx3gzAFyLzXtS 7FIn0abpz0BOxRrQD3pKATExxr7BkNrrNijj4AM3kuv103LvbljLp0upk7Q8yKhL 8W5AJcHMsNhWRnWt8a3uXkoeHmYMBlz+lYwbJJtP9rLD4uc4vm4FeRw2TDwwsEB4 X+4Ofi/uN0h6Qw2IY2mzIVngMnoUuIIgaIoo7TjZd6VzUPexnpo= =gsXx -----END PGP SIGNATURE----- --=-=-=--