nichts/modules/system/os/networking/networkmanager.nix

26 lines
641 B
Nix

{lib, ...}: let
inherit (lib.modules) mkForce;
in {
networking.networkmanager = {
enable = true;
# # Removes about 2GB of stuff we do no need.
# plugins = mkForce [];
dns = "systemd-resolved";
unmanaged = [
# DO NOT manage my docker containers, thank you.
"interface-name:docker*"
];
wifi = {
# Generate a randomized value upon each connect
macAddress = "random";
# Enable Wi-Fi power saving
powersave = true;
# Backend is either wpa_supplicant or iwd,
# I use wpa_supplicant since it is simply more reliable.
backend = "wpa_supplicant";
};
};
}