nixos/zerotierone: prevent systemd from changing MAC address

(cherry picked from commit 27b8253655)
This commit is contained in:
Daniel Fullmer
2020-01-09 17:34:54 -05:00
committed by obadz
parent 84f47bfe9a
commit 009d2d64cd

View File

@@ -63,5 +63,15 @@ in
networking.firewall.allowedUDPPorts = [ cfg.port ];
environment.systemPackages = [ cfg.package ];
# Prevent systemd from potentially changing the MAC address
environment.etc."systemd/network/50-zerotier.link".text = ''
[Match]
OriginalName=zt*
[Link]
AutoNegotiation=false
MACAddressPolicy=none
'';
};
}