configuration.nix/hosts/skipper/network.nix
2023-07-21 00:36:32 +05:30

37 lines
715 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";
};
};
};
};
}