nichts/modules/system/os/networking/networkmanager.nix
Bloxx12 53aaa26fa1 flake: inherit explicitly from parts of lib
Instead of doing `inherit (lib) <something>``, all inherits now use
`inherit (lib.<subsystem>) <something>`, which is much nicer.
2025-04-09 16:13:31 +02:00

26 lines
583 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,
# we use iwd.
backend = "iwd";
};
};
}