From 404d71b849a908b389272240ccbc450e00950c91 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 25 Nov 2024 15:30:55 +0000 Subject: [PATCH] Swap openfortivpn from giving pass to using pinentry --- system/home/openfortivpn/ukaea.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 '') ]; }