diff --git a/devices/cross/tinc.nix b/devices/cross/tinc.nix index 39f93957..27157649 100644 --- a/devices/cross/tinc.nix +++ b/devices/cross/tinc.nix @@ -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 [