networking.networkmanager.ethernet.macAddress
NixOS option
Set the MAC address of the interface. "XX:XX:XX:XX:XX:XX": MAC address of the interface "permanent": Use the permanent MAC address of the device "preserve": Don’t change the MAC address of the device upon activation "random": Generate a randomized value upon each connect "stable": Generate a stable, hashed MAC address
type: string or one of "permanent", "preserve", "random", "stable"Default
"preserve"
Example
declared in: nixos/modules/services/networking/networkmanager.nixView source on NixOS/nixpkgs →"00:11:22:33:44:55"