qclk/firmware/network.nix

29 lines
580 B
Nix
Raw Normal View History

2024-08-31 23:08:26 +01:00
{ lib, config, ... }: {
networking = {
hostName = config.system.name;
useDHCP = false;
useNetworkd = true;
2024-09-01 00:23:40 +01:00
wireless.iwd = {
enable = true;
settings.DriverQuirks.DefaultInterface = "*";
};
2024-08-31 23:08:26 +01:00
};
systemd = {
network = {
2024-09-01 00:23:40 +01:00
wait-online.enable = false;
2024-08-31 23:08:26 +01:00
networks = {
"10-ethernet" = {
matchConfig.Name = "ethernet";
DHCP = "yes";
};
2024-09-01 00:23:40 +01:00
"10-wifi" = {
matchConfig.Name = "wifi";
DHCP = "yes";
networkConfig.IgnoreCarrierLoss = "3s";
};
2024-08-31 23:08:26 +01:00
};
};
};
}