From a63b3080c968fa78854da7d011992b9a080423be Mon Sep 17 00:00:00 2001 From: Romain Paquet Date: Mon, 30 Mar 2026 20:49:06 +0200 Subject: [PATCH] garage: use yggdrasil interface --- nixosModules/garage.nix | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/nixosModules/garage.nix b/nixosModules/garage.nix index 3740110..ae40e67 100644 --- a/nixosModules/garage.nix +++ b/nixosModules/garage.nix @@ -6,9 +6,6 @@ ... }: let - zerotier_interface = "zts7mq7onf"; - zerotier_ip = - self.nixosConfigurations.${config.networking.hostName}.config.clan.core.vars.generators.zerotier.files.zerotier-ip.value; s3_port = 3900; rpc_port = 3901; web_port = 3902; @@ -45,16 +42,9 @@ in }; }; - networking.firewall.interfaces = - let - allowedTCPPorts = [ - s3_port - rpc_port - admin_port - ]; - in - { - ${zerotier_interface} = { inherit allowedTCPPorts; }; - wireguard = { inherit allowedTCPPorts; }; - }; + networking.firewall.interfaces.ygg.allowedTCPPorts = [ + s3_port + rpc_port + admin_port + ]; }