qclk/firmware/network.nix

29 lines
580 B
Nix

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