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