feat: schizo networking

This commit is contained in:
Bloxx12 2025-05-08 19:51:32 +02:00
commit c5898e58d0
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
5 changed files with 116 additions and 42 deletions

View file

@ -1,16 +1,7 @@
{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";
@ -19,8 +10,11 @@ in {
powersave = true;
# Backend is either wpa_supplicant or iwd,
# I use wpa_supplicant since it is simply more reliable.
backend = "wpa_supplicant";
# I use iwd.
backend = "iwd";
# Whether to enable MAC address randomization of a Wi-Fi device during scanning.
scanRandMacAddress = true;
};
};
}