2022-12-29 15:05:26 +01:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
2022-12-29 20:50:01 +01:00
|
|
|
sops.secrets."uni/zih" = { };
|
2022-12-29 20:25:07 +01:00
|
|
|
networking = {
|
|
|
|
wireless.networks = {
|
2022-12-29 20:50:01 +01:00
|
|
|
eduroam = {
|
2022-12-29 20:25:07 +01:00
|
|
|
auth = ''
|
|
|
|
eap=PEAP
|
|
|
|
anonymous_identity="anonymous@tu-dresden.de"
|
|
|
|
ca_cert="/etc/ssl/certs/ca-certificates.crt"
|
|
|
|
domain_suffix_match="radius-eduroam.zih.tu-dresden.de"
|
|
|
|
identity="rose159e@tu-dresden.de"
|
|
|
|
password="@EDUROAM_AUTH@"
|
2023-01-04 11:32:12 +01:00
|
|
|
phase2="auth=MSCHAPV2"
|
2022-12-29 20:25:07 +01:00
|
|
|
'';
|
|
|
|
authProtocols = [ "WPA-EAP" ];
|
|
|
|
};
|
2022-12-29 20:50:01 +01:00
|
|
|
agdsn = {
|
2022-12-29 20:25:07 +01:00
|
|
|
auth = ''
|
|
|
|
eap=TTLS
|
|
|
|
anonymous_identity="anonymous@agdsn.de"
|
|
|
|
ca_cert="/etc/ssl/certs/ca-certificates.crt"
|
|
|
|
domain_suffix_match="radius.agdsn.de"
|
|
|
|
identity="r5"
|
|
|
|
password="@AGDSN_AUTH@"
|
|
|
|
phase2="auth=PAP"
|
|
|
|
'';
|
|
|
|
authProtocols = [ "WPA-EAP" ];
|
|
|
|
};
|
2022-12-30 22:44:05 +01:00
|
|
|
FSR = {
|
|
|
|
psk = "@FSR_PSK@";
|
|
|
|
authProtocols = [ "WPA-PSK" ];
|
|
|
|
};
|
2023-03-09 19:15:05 +01:00
|
|
|
"RoboLab Playground" = {
|
|
|
|
psk = "@ROBOLAB_PSK@";
|
|
|
|
authProtocols = [ "WPA-PSK" ];
|
|
|
|
};
|
2022-12-29 15:05:26 +01:00
|
|
|
};
|
2022-12-29 20:25:07 +01:00
|
|
|
openconnect.interfaces = {
|
2023-01-10 11:31:33 +01:00
|
|
|
TUD-A-Tunnel = {
|
|
|
|
# apparently device names have a character limit
|
2022-12-29 20:25:07 +01:00
|
|
|
protocol = "anyconnect";
|
|
|
|
gateway = "vpn2.zih.tu-dresden.de";
|
|
|
|
user = "rose159e@tu-dresden.de";
|
|
|
|
passwordFile = config.sops.secrets."uni/zih".path;
|
|
|
|
autoStart = false;
|
|
|
|
extraOptions = {
|
|
|
|
authgroup = "A-Tunnel-TU-Networks";
|
|
|
|
compression = "stateless";
|
|
|
|
};
|
|
|
|
};
|
2023-01-10 11:31:33 +01:00
|
|
|
TUD-C-Tunnel = {
|
2023-01-02 22:46:26 +01:00
|
|
|
protocol = "anyconnect";
|
|
|
|
gateway = "vpn2.zih.tu-dresden.de";
|
|
|
|
user = "rose159e@tu-dresden.de";
|
|
|
|
passwordFile = config.sops.secrets."uni/zih".path;
|
|
|
|
autoStart = false;
|
|
|
|
extraOptions = {
|
|
|
|
authgroup = "C-Tunnel-All-Networks";
|
|
|
|
compression = "stateless";
|
|
|
|
};
|
|
|
|
};
|
2022-12-29 15:05:26 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|