nixos/zerotierone: prevent systemd from changing MAC address

This commit is contained in:
Daniel Fullmer 2020-01-09 17:34:54 -05:00
parent e1eedf29e5
commit 27b8253655

@ -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
'';
};
}