configuration.nix/hosts/skipper/network.nix

34 lines
585 B
Nix
Raw Normal View History

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";
};
Settings = {
AutoConnect = true;
};
};
};
};
systemd.network = {
enable = true;
networks.wifi = {
enable = true;
matchConfig = {
Name = "wlan0";
};
networkConfig = {
DHCP = "yes";
};
linkConfig = {
RequiredForOnline = "yes";
};
};
};
}