configuration.nix/hosts/skipper/network.nix
2023-07-20 23:33:31 +05:30

33 lines
585 B
Nix

{lib, ...}: {
networking = {
hostName = "Skipper";
useDHCP = lib.mkDefault false;
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";
};
};
};
}