Skyler Grey | c8dc35e | 2022-09-01 23:42:28 +0100 | [diff] [blame] | 1 | {config, ...}: { |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 2 | config = { |
| 3 | networking.hostName = "python"; |
Skyler Grey | e0b3b7d | 2022-09-09 08:14:11 +0100 | [diff] [blame] | 4 | networking.useDHCP = true; |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 5 | |
| 6 | networking.wireless.iwd.enable = true; |
| 7 | networking.wireless.iwd.settings = { |
Skyler Grey | 70d1eef | 2022-09-06 22:23:37 +0100 | [diff] [blame] | 8 | General = { |
| 9 | EnableNetworkConfiguration = true; |
| 10 | }; |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 11 | Settings = { |
| 12 | AutoConnect = true; |
| 13 | AlwaysRandomizeAddress = true; |
| 14 | }; |
| 15 | }; |
| 16 | networking.search = [ |
| 17 | "python.local" |
| 18 | ]; |
Skyler Grey | c8dc35e | 2022-09-01 23:42:28 +0100 | [diff] [blame] | 19 | |
| 20 | hardware.enableRedistributableFirmware = true; |
| 21 | |
| 22 | environment.persistence."/nix/persist".directories = ["/var/lib/iwd"]; |
Skyler Grey | e0b3b7d | 2022-09-09 08:14:11 +0100 | [diff] [blame] | 23 | |
| 24 | sops.secrets."eduroam.8021x" = { |
| 25 | sopsFile = ../secrets/eduroam.8021x; |
| 26 | format = "binary"; |
| 27 | path = "/var/lib/iwd/eduroam.8021x"; |
| 28 | }; |
| 29 | sops.secrets."eduroam.pem" = { |
| 30 | sopsFile = ../secrets/eduroam.pem; |
| 31 | format = "binary"; |
| 32 | path = "/var/lib/iwd/eduroam.pem"; |
| 33 | }; |
Skyler Grey | f4a835a | 2022-08-20 22:30:48 +0100 | [diff] [blame] | 34 | }; |
| 35 | } |