diff --git a/system/home/openfortivpn/ukaea.nix b/system/home/openfortivpn/ukaea.nix index 0f40807f..62369f81 100644 --- a/system/home/openfortivpn/ukaea.nix +++ b/system/home/openfortivpn/ukaea.nix @@ -1,11 +1,11 @@ -{ pkgs, ... }: +{ config, pkgs, ... }: { home.packages = [ (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" '' - 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 '') ]; }