Skip to content

Commit

Permalink
feat(network): add sGPN22 WiFi
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Gerold <commit+github@jgero.me>
  • Loading branch information
rubenhoenle and jgero authored May 30, 2024
1 parent 4104a5d commit 7464e79
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions modules/network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,41 @@ in
networkmanager.enable = true;
firewall.enable = true;
};

networking.networkmanager.ensureProfiles.profiles = {
"GPN" = {
connection = {
id = "GPN";
type = "wifi";
autoconnect = true;
interface-name = "wlp2s0";
};
wifi = {
mode = "infrastructure";
ssid = "GPN";
};
wifi-security = {
key-mgmt = "wpa-eap";
};
"802-1x" = {
eap = "ttls;";
identity = "gpn";
password = "gpn";
phase2-auth = "pap";
domain-suffix-match = "radius.noc.gulas.ch";
ca-cert = "${builtins.fetchurl {
url = "https://letsencrypt.org/certs/isrgrootx1.pem";
sha256 = "sha256:1la36n2f31j9s03v847ig6ny9lr875q3g7smnq33dcsmf2i5gd92";
}}";
};
ipv4 = {
method = "auto";
};
ipv6 = {
addr-gen-mode = "stable-privacy";
method = "auto";
};
};
};
};
}

0 comments on commit 7464e79

Please sign in to comment.