modules zerotier: use settings style networkd syntax

This commit is contained in:
lassulus 2023-07-11 17:21:20 +02:00
parent a63abe676e
commit 07a2d1e4aa

View File

@ -6,17 +6,14 @@
networking.firewall.interfaces."zt+".allowedUDPPorts = [ 5353 ]; networking.firewall.interfaces."zt+".allowedUDPPorts = [ 5353 ];
# Note avahi was super slow. systemd-resolved worked much faster for mdns # Note avahi was super slow. systemd-resolved worked much faster for mdns
systemd.network.networks = { systemd.network.networks.zerotier = {
zerotier.extraConfig = '' matchConfig.Name = "zt*";
[Match] networkConfig = {
Name=zt* LLMNR = true;
LLDP = true;
[Network] MulticastDNS = true;
LLMNR=true KeepConfiguration = "static";
LLDP=true };
MulticastDNS=true
KeepConfiguration=static
'';
}; };
services.zerotierone = { services.zerotierone = {