networking: random mac

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-04-28 16:53:28 +03:00
parent 38e0f83009
commit 9bee43fc50
2 changed files with 9 additions and 2 deletions

View File

@ -2,6 +2,9 @@
networking = { networking = {
hostId = "c7f6c4a1"; hostId = "c7f6c4a1";
hostName = "dunamis"; hostName = "dunamis";
networkmanager.enable = true; networkmanager = {
enable = true;
ethernet.macAddress = "stable";
};
}; };
} }

View File

@ -12,7 +12,11 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
networking = { networking = {
networkmanager.wifi.backend = "iwd"; networkmanager.wifi = {
backend = "iwd";
macAddress = "random";
scanRandMacAddress = true;
};
wireless.iwd = { wireless.iwd = {
enable = true; enable = true;
settings = { settings = {