try openconnect again

This commit is contained in:
2023-12-07 11:35:10 +01:00
parent 301b263993
commit 59fd6b7d3f

View File

@@ -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" ''
#!/bin/sh
export INTERNAL_IP4_DNS=
vpnc = pkgs.writeShellScript "vpnc" ''
#!/bin/sh
export INTERNAL_IP4_DNS=
. ${pkgs.vpnc-scripts}/vpnc-script
'';
};
. ${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}";
};
};
};