From b896e43d90944b886319e31a111f8c5969704e64 Mon Sep 17 00:00:00 2001 From: chn Date: Tue, 4 Nov 2025 13:18:53 +0800 Subject: [PATCH] devices.cross.tinc: tinc use socks5 proxy --- devices/cross/tinc.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/devices/cross/tinc.nix b/devices/cross/tinc.nix index 51286051..4c16d73f 100644 --- a/devices/cross/tinc.nix +++ b/devices/cross/tinc.nix @@ -111,7 +111,13 @@ in { services.tinc.networks.tinc0 = { - settings = { Interface = "tinc0"; Name = tincHostname hostname; PingInterval = 10; }; + settings = + { + Interface = "tinc0"; + Name = tincHostname hostname; + PingInterval = 10; + Proxy = inputs.lib.mkIf (inputs.config.nixos.services.xray.client != null) "socks5 127.0.0.1 10885"; + }; ed25519PrivateKeyFile = inputs.config.nixos.system.sops.secrets."tinc".path; hostSettings = inputs.lib.mkMerge [