From 341698c3672ae6784226502fb9d8e6d9ca0f81cb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 18 Oct 2010 10:40:08 +0000 Subject: [PATCH] * OpenVPN: add it to the system path when enabled. svn path=/nixos/trunk/; revision=24343 --- modules/services/networking/openvpn.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/services/networking/openvpn.nix b/modules/services/networking/openvpn.nix index 0d2025d9ce3..772a9509064 100644 --- a/modules/services/networking/openvpn.nix +++ b/modules/services/networking/openvpn.nix @@ -155,7 +155,11 @@ in ###### implementation config = mkIf cfg.enable { + jobs = listToAttrs (mapAttrsFlatten (name: value: nameValuePair "openvpn-${name}" (makeOpenVPNJob value name)) cfg.servers); + + environment.systemPackages = [ openvpn ]; + }; }