2023-07-20 23:33:31 +05:30
|
|
|
{lib, ...}: {
|
2023-07-20 20:40:19 +05:30
|
|
|
networking = {
|
|
|
|
hostName = "Skipper";
|
2023-07-20 23:33:31 +05:30
|
|
|
useDHCP = lib.mkDefault false;
|
2023-07-20 20:40:19 +05:30
|
|
|
wireless.iwd = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
General = {
|
|
|
|
AddressRandomization = "network";
|
2023-07-20 23:36:49 +05:30
|
|
|
EnableNetworkConfiguration = false;
|
2023-07-20 20:40:19 +05:30
|
|
|
};
|
|
|
|
Settings = {
|
2023-07-20 23:36:49 +05:30
|
|
|
AutoConnect = "yes";
|
2023-07-20 20:40:19 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
2023-07-21 00:36:32 +05:30
|
|
|
networks = {
|
|
|
|
"40-wireless" = {
|
|
|
|
enable = true;
|
|
|
|
matchConfig = {
|
|
|
|
Type = "wlan";
|
|
|
|
};
|
|
|
|
networkConfig = {
|
|
|
|
DHCP = "yes";
|
|
|
|
IgnoreCarrierLoss = "3s";
|
|
|
|
};
|
|
|
|
linkConfig = {
|
|
|
|
RequiredForOnline = "yes";
|
|
|
|
};
|
2023-07-20 20:40:19 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|