try openconnect again
This commit is contained in:
parent
301b263993
commit
59fd6b7d3f
1 changed files with 6 additions and 13 deletions
|
|
@ -1,18 +1,11 @@
|
|||
{ config, pkgs, stdenv, ... }:
|
||||
let
|
||||
vpnc = { name, sha256 }:
|
||||
stdenv.mkDerivation {
|
||||
inherit name;
|
||||
outputHashMode = "recursive";
|
||||
outputHashAlgo = "sha256";
|
||||
outputHash = sha256;
|
||||
builder = pkgs.writeShellScript "vpnc-script.sh" ''
|
||||
vpnc = pkgs.writeShellScript "vpnc" ''
|
||||
#!/bin/sh
|
||||
export INTERNAL_IP4_DNS=
|
||||
|
||||
. ${pkgs.vpnc-scripts}/vpnc-script
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
sops.secrets.wrwks_vpn_key = {};
|
||||
|
|
@ -24,7 +17,7 @@ in
|
|||
protocol = "anyconnect";
|
||||
user = "exdpolakovics@wrwks.local";
|
||||
extraOptions = {
|
||||
script = "${vpnc}/bin/vpnc-script.sh";
|
||||
script = "${vpnc}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue