Add Wi-Fi for 37C3

Yes that was the laziest option to do that.
This commit is contained in:
Geoffrey Frogeye 2023-12-24 22:24:12 +01:00
parent 9ac84e8470
commit ec1d120f12
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 18 additions and 1 deletions

17
os/ccc/default.nix Normal file
View file

@ -0,0 +1,17 @@
{ ... }:
{
config = {
networking.wireless.networks."37C3".auth = ''
key_mgmt=WPA-EAP
eap=TTLS
identity="37C3"
password="37C3"
ca_cert="${builtins.fetchurl {
url = "https://letsencrypt.org/certs/isrgrootx1.pem";
sha256 = "sha256:1la36n2f31j9s03v847ig6ny9lr875q3g7smnq33dcsmf2i5gd92";
}}"
altsubject_match="DNS:radius.c3noc.net"
phase2="auth=PAP"
'';
};
}

View file

@ -3,6 +3,7 @@
imports = [ imports = [
../options.nix ../options.nix
./battery.nix ./battery.nix
./ccc
./common.nix ./common.nix
./desktop.nix ./desktop.nix
./gaming ./gaming

View file

@ -1,7 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
# wireless support via wpa_supplicant # wireless support via wpa_supplicant
# TODO This doesn't change anything, at least in the VM
networking.wireless = { networking.wireless = {
enable = true; enable = true;
networks = builtins.fromJSON (builtins.readFile ./wireless/networks.json); # If this file doesn't exist, run ./wireless/import.py networks = builtins.fromJSON (builtins.readFile ./wireless/networks.json); # If this file doesn't exist, run ./wireless/import.py