27 lines
485 B
Nix
27 lines
485 B
Nix
{ hostname, ... }:
|
|
{
|
|
# speed up boot times (by about three seconds)
|
|
systemd.services.NetworkManager-wait-online.enable = false;
|
|
|
|
networking = {
|
|
hostName = hostname;
|
|
|
|
networkmanager = {
|
|
enable = true;
|
|
|
|
insertNameservers = [
|
|
"1.1.1.1"
|
|
"9.9.9.9"
|
|
];
|
|
|
|
wifi = {
|
|
scanRandMacAddress = true;
|
|
# fix suspend issue
|
|
powersave = false;
|
|
};
|
|
};
|
|
|
|
wireless.networks = import ./secrets/wifi-passwords.nix;
|
|
};
|
|
}
|