blob: 8f2e79297b606dd1e97b2e57bb1132a3c5085b83 [file] [log] [blame]
Skyler Greyc8dc35e2022-09-01 23:42:28 +01001{config, ...}: {
Skyler Greyf4a835a2022-08-20 22:30:48 +01002 config = {
3 networking.hostName = "python";
Skyler Greye0b3b7d2022-09-09 08:14:11 +01004 networking.useDHCP = true;
Skyler Greyf4a835a2022-08-20 22:30:48 +01005
6 networking.wireless.iwd.enable = true;
7 networking.wireless.iwd.settings = {
Skyler Grey70d1eef2022-09-06 22:23:37 +01008 General = {
9 EnableNetworkConfiguration = true;
10 };
Skyler Greyf4a835a2022-08-20 22:30:48 +010011 Settings = {
12 AutoConnect = true;
13 AlwaysRandomizeAddress = true;
14 };
15 };
16 networking.search = [
17 "python.local"
18 ];
Skyler Greyc8dc35e2022-09-01 23:42:28 +010019
20 hardware.enableRedistributableFirmware = true;
21
22 environment.persistence."/nix/persist".directories = ["/var/lib/iwd"];
Skyler Greye0b3b7d2022-09-09 08:14:11 +010023
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 Greyf4a835a2022-08-20 22:30:48 +010034 };
35}