openvpn: fix type error

either use
- optional cond "target"
or
- optionals cond ["target1" "target2"]
This commit is contained in:
Mathijs Kwik 2013-06-02 10:23:03 +02:00
parent e776c0623d
commit 824b5b645a

View File

@ -49,7 +49,7 @@ let
in {
description = "OpenVPN instance ${name}";
wantedBy = optional cfg.autoStart [ "multi-user.target" ];
wantedBy = optional cfg.autoStart "multi-user.target";
after = [ "network-interfaces.target" ];
path = [ pkgs.iptables pkgs.iproute pkgs.nettools ];