From 4b57d35c274027422581144191aa949b5969e95c Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Sat, 25 Feb 2023 14:01:40 -0800 Subject: [PATCH] mullvad: make openvpn support optional Enabled by default to not break anybody who depends on it, but I don't and I would like to disable it. --- pkgs/applications/networking/mullvad/mullvad.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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