45 lines
887 B
Nix
45 lines
887 B
Nix
{lib, ...}: {
|
|
networking = {
|
|
hostName = "Skipper";
|
|
useDHCP = lib.mkDefault false;
|
|
wireless.iwd = {
|
|
enable = true;
|
|
settings = {
|
|
General = {
|
|
AddressRandomization = "network";
|
|
EnableNetworkConfiguration = false;
|
|
};
|
|
Settings = {
|
|
AutoConnect = "yes";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
services.resolved.enable = true;
|
|
|
|
systemd.network = {
|
|
enable = true;
|
|
networks = {
|
|
"40-wireless" = {
|
|
enable = true;
|
|
matchConfig = {
|
|
Type = "wlan";
|
|
};
|
|
networkConfig = {
|
|
DHCP = "yes";
|
|
IgnoreCarrierLoss = "3s";
|
|
};
|
|
dhcpV4Config = {
|
|
UseDomains = true;
|
|
};
|
|
ipv6AcceptRAConfig = {
|
|
UseDomains = true;
|
|
};
|
|
linkConfig = {
|
|
RequiredForOnline = "yes";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|