Merge pull request #77405 from danielfullmer/zerotier-mac-fix
nixos/zerotierone: prevent systemd from changing MAC address
This commit is contained in:
commit
c31958449f
@ -67,5 +67,15 @@ in
|
|||||||
networking.firewall.allowedUDPPorts = [ cfg.port ];
|
networking.firewall.allowedUDPPorts = [ cfg.port ];
|
||||||
|
|
||||||
environment.systemPackages = [ cfg.package ];
|
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
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user