try openconnect again
This commit is contained in:
@@ -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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user