From ec1d120f1219943590261ae475652753bc1369db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sun, 24 Dec 2023 22:24:12 +0100 Subject: [PATCH] Add Wi-Fi for 37C3 Yes that was the laziest option to do that. --- os/ccc/default.nix | 17 +++++++++++++++++ os/default.nix | 1 + os/wireless.nix | 1 - 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 os/ccc/default.nix diff --git a/os/ccc/default.nix b/os/ccc/default.nix new file mode 100644 index 0000000..31002ce --- /dev/null +++ b/os/ccc/default.nix @@ -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" + ''; + }; +} diff --git a/os/default.nix b/os/default.nix index f693171..6fb335a 100644 --- a/os/default.nix +++ b/os/default.nix @@ -3,6 +3,7 @@ imports = [ ../options.nix ./battery.nix + ./ccc ./common.nix ./desktop.nix ./gaming diff --git a/os/wireless.nix b/os/wireless.nix index 4f75018..b1e2b9e 100644 --- a/os/wireless.nix +++ b/os/wireless.nix @@ -1,7 +1,6 @@ { pkgs, ... }: { # wireless support via wpa_supplicant - # TODO This doesn't change anything, at least in the VM networking.wireless = { enable = true; networks = builtins.fromJSON (builtins.readFile ./wireless/networks.json); # If this file doesn't exist, run ./wireless/import.py