1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

networks: add eduroam, add secret file

This commit is contained in:
Kierán Meinhardt
2018-10-01 08:26:07 +02:00
parent 9094f94983
commit efeb5bf271
2 changed files with 18 additions and 1 deletions

View File

@@ -1,12 +1,28 @@
{
let eduroam = (import ../secrets.nix).eduroam;
in {
networking.hosts = {
"192.168.178.27" = [ "printer.local" ];
};
networking.wireless.enable = true;
networking.wireless.userControlled.enable = true;
networking.wireless.networks = {
Aether = { pskRaw = "e1b18af54036c5c9a747fe681c6a694636d60a5f8450f7dec0d76bc93e2ec85a"; };
"Asoziales Netzwerk" = { pskRaw = "8e234041ec5f0cd1b6a14e9adeee9840ed51b2f18856a52137485523e46b0cb6"; };
"c-base-public" = {};
"FlixBus" = {};
"FlixBus Wi-Fi" = {};
eduroam = {
auth = ''
key_mgmt=WPA-EAP
eap=TTLS
proto=RSN
identity="${eduroam.identity}"
anonymous_identity="anonymous@cms.hu-berlin.de"
password="${eduroam.password}"
ca_cert="${builtins.fetchurl https://www.cms.hu-berlin.de/de/dl/netze/wlan/config/eduroam/deutsche-telekom-root-ca-2.crt}"
phase2="auth=PAP"
'';
};
};
}