From fb5a616b020b9a769021add02379a431ea507a83 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Wed, 10 Jul 2013 16:43:26 +0200 Subject: [PATCH] openconnect and vpnc NetworkManager plugins added --- modules/services/networking/networkmanager.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/modules/services/networking/networkmanager.nix b/modules/services/networking/networkmanager.nix index 88f1e08b3771..bbc4d1f8cea7 100644 --- a/modules/services/networking/networkmanager.nix +++ b/modules/services/networking/networkmanager.nix @@ -92,9 +92,19 @@ in { { source = "${networkmanager_openvpn}/etc/NetworkManager/VPN/nm-openvpn-service.name"; target = "NetworkManager/VPN/nm-openvpn-service.name"; } + { source = "${networkmanager_vpnc}/etc/NetworkManager/VPN/nm-vpnc-service.name"; + target = "NetworkManager/VPN/nm-vpnc-service.name"; + } + { source = "${networkmanager_openconnect}/etc/NetworkManager/VPN/nm-openconnect-service.name"; + target = "NetworkManager/VPN/nm-openconnect-service.name"; + } ]; - environment.systemPackages = cfg.packages ++ [ networkmanager_openvpn ]; + environment.systemPackages = cfg.packages ++ [ + networkmanager_openvpn + networkmanager_vpnc + networkmanager_openconnect + ]; users.extraGroups = singleton { name = "networkmanager"; @@ -134,7 +144,11 @@ in { security.polkit.permissions = polkitConf; # openvpn plugin has only dbus interface - services.dbus.packages = cfg.packages ++ [ networkmanager_openvpn ]; + services.dbus.packages = cfg.packages ++ [ + networkmanager_openvpn + networkmanager_vpnc + networkmanager_openconnect + ]; services.udev.packages = cfg.packages; };