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

27 lines
575 B
Nix
Raw Normal View History

{lib, ...}: let
inherit (lib) 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
2024-08-16 23:05:45 +02:00
macAddress = "random";
# Enable Wi-Fi power saving
powersave = true;
# Backend is either wpa_supplicant or iwd,
2025-02-25 17:28:32 +01:00
# we use iwd.
backend = "iwd";
};
};
}