Merge branch 'master' of ssh://ssh.nx2.site:50022/nx2/dotfiles
This commit is contained in:
@@ -12,17 +12,16 @@
|
||||
environment.systemPackages = with pkgs; [
|
||||
openconnect
|
||||
networkmanager-openconnect
|
||||
(pkgs.writeShellScriptBin "connect_to_tuda" ''
|
||||
sudo $(grep ExecStart /etc/systemd/system/openconnect-tuda.service | cut -c 11-)
|
||||
'')
|
||||
];
|
||||
networking.openconnect = {
|
||||
package = pkgs.openconnect;
|
||||
interfaces = {
|
||||
openconnect0 = {
|
||||
tuda = {
|
||||
autoStart = false;
|
||||
certificate = "/home/nx2/tuda-rootcert.crt";
|
||||
# extraOptions = { compression = "stateless"; no-dtls = true; no-http-keepalive = true; };
|
||||
gateway = "vpn.hrz.tu-darmstadt.de";
|
||||
# passwordFile = "/var/lib/secrets/openconnect-passwd";
|
||||
# privateKey = "/var/lib/secrets/openconnect_private_key.pem";
|
||||
protocol = "anyconnect";
|
||||
user = secrets.email.tuda.tuid;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user