diff --git a/pkgs/applications/networking/mullvad/mullvad.nix b/pkgs/applications/networking/mullvad/mullvad.nix index e65de1334df2..0d62c3c7ce96 100644 --- a/pkgs/applications/networking/mullvad/mullvad.nix +++ b/pkgs/applications/networking/mullvad/mullvad.nix @@ -12,6 +12,7 @@ , libnftnl , libmnl , libwg +, enableOpenvpn ? true , openvpn-mullvad , shadowsocks-rust }: @@ -67,7 +68,7 @@ rustPlatform.buildRustPackage rec { done '' + # Files necessary for OpenVPN tunnels to work. - '' + lib.optionalString enableOpenvpn '' mkdir -p $out/share/mullvad cp dist-assets/ca.crt $out/share/mullvad ln -s ${openvpn-mullvad}/bin/openvpn $out/share/mullvad