devices.cross.tinc: tinc use socks5 proxy

This commit is contained in:
2025-11-04 13:18:53 +08:00
parent ca41ee7bd6
commit b896e43d90

View File

@@ -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
[