Skyler Grey | e0b26d2 | 2022-10-30 23:05:08 +0000 | [diff] [blame] | 1 | { |
| 2 | config, |
| 3 | lib, |
| 4 | pkgs, |
| 5 | ... |
| 6 | }: { |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 7 | config = { |
Skyler Grey | f18fe9f | 2022-10-30 23:07:57 +0000 | [diff] [blame] | 8 | networking = { |
| 9 | hostName = "python"; |
| 10 | nameservers = ["1.1.1.1" "1.0.0.1"]; |
| 11 | /* networkmanager = { */ |
| 12 | /* enable = true; */ |
| 13 | /* wifi.powersave = true; */ |
| 14 | /* insertNameservers = ["1.1.1.1" "1.0.0.1"]; */ |
| 15 | /* firewallBackend = "nftables"; */ |
| 16 | /* unmanaged = ["*"]; */ |
| 17 | /* }; */ |
| 18 | search = [ |
| 19 | "python.local" |
| 20 | ]; |
| 21 | wireless = { |
| 22 | enable = true; |
| 23 | userControlled.enable = true; |
| 24 | networks = { |
| 25 | eduroam = { |
| 26 | auth = '' |
| 27 | scan_ssid=1 |
| 28 | proto=WPA2 |
| 29 | key_mgmt=WPA-EAP |
| 30 | eap=PEAP |
| 31 | pairwise=CCMP |
Skyler Grey | e0b26d2 | 2022-10-30 23:05:08 +0000 | [diff] [blame] | 32 | |
Skyler Grey | f18fe9f | 2022-10-30 23:07:57 +0000 | [diff] [blame] | 33 | identity="@eduroamUser@" |
| 34 | password="@eduroamPass@" |
Skyler Grey | e0b26d2 | 2022-10-30 23:05:08 +0000 | [diff] [blame] | 35 | |
Skyler Grey | f18fe9f | 2022-10-30 23:07:57 +0000 | [diff] [blame] | 36 | phase2="auth=MSCHAPV2" |
| 37 | ''; |
| 38 | }; |
| 39 | "HRSFC Guest".psk = "@hrsfcGuestPass@"; |
| 40 | adelie10 = { |
| 41 | psk = "@adelie10Pass@"; |
| 42 | priority = 500; |
| 43 | }; |
| 44 | robocon-buster_beta.psk = "@roboconProtoboardPass@"; |
| 45 | }; |
| 46 | environmentFile = config.sops.secrets."wireless.env".path; |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 47 | }; |
| 48 | }; |
Skyler Grey | c8dc35e | 2022-09-01 23:42:28 +0100 | [diff] [blame] | 49 | |
| 50 | hardware.enableRedistributableFirmware = true; |
| 51 | |
Skyler Grey | f18fe9f | 2022-10-30 23:07:57 +0000 | [diff] [blame] | 52 | sops.secrets."wireless.env" = { |
| 53 | sopsFile = ../secrets/wireless.env.bin; |
Skyler Grey | e0b3b7d | 2022-09-09 08:14:11 +0100 | [diff] [blame] | 54 | format = "binary"; |
Skyler Grey | e0b3b7d | 2022-09-09 08:14:11 +0100 | [diff] [blame] | 55 | }; |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 56 | }; |
| 57 | } |