nixos/system/home/openfortivpn/ukaea.nix

12 lines
472 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
home.packages = [
(pkgs.writeShellScriptBin "ukaea-vpn-connect" ''
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 --config=${./jetdata-vpn.conf} --pinentry=${config.services.gpg-agent.pinentryPackage}/bin/pinentry
'')
];
}