Swap openfortivpn from giving pass to using pinentry

This commit is contained in:
Evie Litherland-Smith 2024-11-25 15:30:55 +00:00
parent 8b867340ed
commit 404d71b849

View file

@ -1,11 +1,11 @@
{ pkgs, ... }: { config, pkgs, ... }:
{ {
home.packages = [ home.packages = [
(pkgs.writeShellScriptBin "ukaea-vpn-connect" '' (pkgs.writeShellScriptBin "ukaea-vpn-connect" ''
sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./ukaea-vpn.conf} -p $(${pkgs.pass}/bin/pass show work/microsoftonline.com | head -n1) sudo ${pkgs.openfortivpn}/bin/openfortivpn --config=${./ukaea-vpn.conf} --pinentry=${config.services.gpg-agent.pinentryPackage}/bin/pinentry
'') '')
(pkgs.writeShellScriptBin "jetdata-vpn-connect" '' (pkgs.writeShellScriptBin "jetdata-vpn-connect" ''
sudo ${pkgs.openfortivpn}/bin/openfortivpn -c ${./jetdata-vpn.conf} -p $(${pkgs.pass}/bin/pass show work/microsoftonline.com | head -n1) sudo ${pkgs.openfortivpn}/bin/openfortivpn --config=${./jetdata-vpn.conf} --pinentry=${config.services.gpg-agent.pinentryPackage}/bin/pinentry
'') '')
]; ];
} }