2024-08-16 13:32:13 +02:00
|
|
|
{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";
|
2024-08-16 13:32:13 +02:00
|
|
|
|
|
|
|
# Enable Wi-Fi power saving
|
|
|
|
powersave = true;
|
|
|
|
|
|
|
|
# Backend is either wpa_supplicant or iwd,
|
|
|
|
# we use wpa_supplicant.
|
|
|
|
backend = "wpa_supplicant";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|