Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { config |
| 2 | , lib |
| 3 | , pkgs |
| 4 | , ... |
Skyler Grey | e0b26d2 | 2022-10-30 23:05:08 +0000 | [diff] [blame] | 5 | }: { |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 6 | config = { |
Skyler Grey | f18fe9f | 2022-10-30 23:07:57 +0000 | [diff] [blame] | 7 | networking = { |
Skyler Grey | 06cd670 | 2022-10-31 00:06:16 +0000 | [diff] [blame] | 8 | dhcpcd.extraConfig = '' |
| 9 | timeout 0 |
| 10 | leasetime -1 |
| 11 | ipv6 off |
| 12 | noipv6rs |
| 13 | ipv4only |
| 14 | noarp |
| 15 | |
| 16 | ssid eduroam |
| 17 | static ip_address=10.0.48.79/8 |
| 18 | static routers=10.0.0.1 |
| 19 | ''; |
Skyler Grey | f18fe9f | 2022-10-30 23:07:57 +0000 | [diff] [blame] | 20 | hostName = "python"; |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 21 | nameservers = [ "1.1.1.1" "1.0.0.1" ]; |
Skyler Grey | f18fe9f | 2022-10-30 23:07:57 +0000 | [diff] [blame] | 22 | search = [ |
| 23 | "python.local" |
| 24 | ]; |
| 25 | wireless = { |
| 26 | enable = true; |
| 27 | userControlled.enable = true; |
| 28 | networks = { |
| 29 | eduroam = { |
| 30 | auth = '' |
| 31 | scan_ssid=1 |
| 32 | proto=WPA2 |
| 33 | key_mgmt=WPA-EAP |
| 34 | eap=PEAP |
| 35 | pairwise=CCMP |
Skyler Grey | e0b26d2 | 2022-10-30 23:05:08 +0000 | [diff] [blame] | 36 | |
Skyler Grey | f18fe9f | 2022-10-30 23:07:57 +0000 | [diff] [blame] | 37 | identity="@eduroamUser@" |
| 38 | password="@eduroamPass@" |
Skyler Grey | e0b26d2 | 2022-10-30 23:05:08 +0000 | [diff] [blame] | 39 | |
Skyler Grey | f18fe9f | 2022-10-30 23:07:57 +0000 | [diff] [blame] | 40 | phase2="auth=MSCHAPV2" |
| 41 | ''; |
| 42 | }; |
| 43 | "HRSFC Guest".psk = "@hrsfcGuestPass@"; |
| 44 | adelie10 = { |
| 45 | psk = "@adelie10Pass@"; |
| 46 | priority = 500; |
| 47 | }; |
| 48 | robocon-buster_beta.psk = "@roboconProtoboardPass@"; |
Skyler Grey | 4d6c69d | 2022-10-31 00:18:55 +0000 | [diff] [blame] | 49 | "RoboCon2023-Sky".psk = "@robocon2023SkyPass@"; |
| 50 | "RoboCon2022-Beta_team_4".psk = "@robocon2023Beta4Pass@"; |
Skyler Grey | f18fe9f | 2022-10-30 23:07:57 +0000 | [diff] [blame] | 51 | }; |
| 52 | environmentFile = config.sops.secrets."wireless.env".path; |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 53 | }; |
| 54 | }; |
Skyler Grey | c8dc35e | 2022-09-01 23:42:28 +0100 | [diff] [blame] | 55 | |
| 56 | hardware.enableRedistributableFirmware = true; |
| 57 | |
Skyler Grey | f18fe9f | 2022-10-30 23:07:57 +0000 | [diff] [blame] | 58 | sops.secrets."wireless.env" = { |
| 59 | sopsFile = ../secrets/wireless.env.bin; |
Skyler Grey | e0b3b7d | 2022-09-09 08:14:11 +0100 | [diff] [blame] | 60 | format = "binary"; |
Skyler Grey | e0b3b7d | 2022-09-09 08:14:11 +0100 | [diff] [blame] | 61 | }; |
Skyler Grey | 06cd670 | 2022-10-31 00:06:16 +0000 | [diff] [blame] | 62 | |
| 63 | environment = { |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 64 | persistence."/nix/persist".directories = [ "/var/db/dhcpcd" ]; |
| 65 | systemPackages = [ pkgs.bandwidth ]; |
Skyler Grey | 06cd670 | 2022-10-31 00:06:16 +0000 | [diff] [blame] | 66 | }; |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 67 | }; |
| 68 | } |