devices.cross.tinc: use socks proxy behind xray

This commit is contained in:
2025-11-17 09:19:10 +08:00
parent aaadfa1191
commit 2ea749639d

View File

@@ -155,7 +155,14 @@ in
{
services.tinc.networks.tinc0 =
{
settings = { Interface = "tinc0"; Name = tincHostname hostname; PingInterval = 10; TCPOnly = true; };
settings =
{
Interface = "tinc0";
Name = tincHostname hostname;
PingInterval = 10;
TCPOnly = true;
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
[