garage: use yggdrasil interface

This commit is contained in:
Romain Paquet 2026-03-30 20:49:06 +02:00
parent 3e650e550d
commit a63b3080c9

View file

@ -6,9 +6,6 @@
... ...
}: }:
let let
zerotier_interface = "zts7mq7onf";
zerotier_ip =
self.nixosConfigurations.${config.networking.hostName}.config.clan.core.vars.generators.zerotier.files.zerotier-ip.value;
s3_port = 3900; s3_port = 3900;
rpc_port = 3901; rpc_port = 3901;
web_port = 3902; web_port = 3902;
@ -45,16 +42,9 @@ in
}; };
}; };
networking.firewall.interfaces = networking.firewall.interfaces.ygg.allowedTCPPorts = [
let s3_port
allowedTCPPorts = [ rpc_port
s3_port admin_port
rpc_port ];
admin_port
];
in
{
${zerotier_interface} = { inherit allowedTCPPorts; };
wireguard = { inherit allowedTCPPorts; };
};
} }