nixos-config/hosts/thinkpad/modules/networks/uni.nix

86 lines
2.3 KiB
Nix
Raw Normal View History

{ config, ... }:
{
2023-11-16 13:29:18 +01:00
age.secrets.tud = {
file = ../../../../secrets/thinkpad/tud.age;
};
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=TTLS
2022-12-29 20:25:07 +01:00
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@"
phase2="auth=PAP"
'';
extraConfig = ''
scan_ssid=1
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
2023-10-08 14:22:52 +02:00
anonymous_identity="wifi@agdsn.de"
2022-12-29 20:25:07 +01:00
ca_cert="/etc/ssl/certs/ca-certificates.crt"
domain_suffix_match="radius.agdsn.de"
identity="r5"
2023-10-22 15:45:30 +02:00
password="@AGDSN_WIFI_AUTH@"
phase2="auth=PAP"
'';
authProtocols = [ "WPA-EAP" ];
};
agdsn-office = {
2023-11-20 22:46:51 +01:00
priority = 5;
2023-10-22 15:45:30 +02:00
auth = ''
eap=TTLS
anonymous_identity="wifi@agdsn.de"
ca_cert="/etc/ssl/certs/ca-certificates.crt"
domain_suffix_match="radius.agdsn.de"
identity="r5"
proto=WPA2
2022-12-29 20:25:07 +01:00
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" ];
2023-03-22 10:27:13 +01:00
extraConfig = "disabled=1";
2023-03-09 19:15:05 +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";
2023-11-16 13:29:18 +01:00
passwordFile = config.age.secrets.tud.path;
2022-12-29 20:25:07 +01:00
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";
2023-11-16 13:29:18 +01:00
passwordFile = config.age.secrets.tud.path;
2023-01-02 22:46:26 +01:00
autoStart = false;
extraOptions = {
authgroup = "C-Tunnel-All-Networks";
compression = "stateless";
};
};
};
};
}