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