Merge pull request #77405 from danielfullmer/zerotier-mac-fix

nixos/zerotierone: prevent systemd from changing MAC address
This commit is contained in:
obadz 2020-03-01 18:49:00 -07:00 committed by GitHub
commit c31958449f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,5 +67,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
'';
};
}