feat: schizo networking
This commit is contained in:
parent
92bb3f929b
commit
c5898e58d0
5 changed files with 116 additions and 42 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue