Fix openfortivpn scripts

This commit is contained in:
Evie Litherland-Smith 2024-12-16 17:31:35 +00:00
parent 79ff1e8bd3
commit d6bbc415d4

View file

@ -1,11 +1,11 @@
{ config, pkgs, ... }: { pkgs, ... }:
{ {
home.packages = [ home.packages = [
(pkgs.writeShellScriptBin "ukaea-vpn-connect" '' (pkgs.writeShellScriptBin "ukaea-vpn-connect" ''
sudo ${pkgs.openfortivpn}/bin/openfortivpn --config=${./ukaea-vpn.conf} --pinentry=${config.services.gpg-agent.pinentryPackage}/bin/pinentry sudo ${pkgs.openfortivpn}/bin/openfortivpn --config=${./ukaea-vpn.conf}
'') '')
(pkgs.writeShellScriptBin "jetdata-vpn-connect" '' (pkgs.writeShellScriptBin "jetdata-vpn-connect" ''
sudo ${pkgs.openfortivpn}/bin/openfortivpn --config=${./jetdata-vpn.conf} --pinentry=${config.services.gpg-agent.pinentryPackage}/bin/pinentry sudo ${pkgs.openfortivpn}/bin/openfortivpn --config=${./jetdata-vpn.conf}
'') '')
]; ];
} }