mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:55:22 +08:00
devices.cross.tinc: tinc use socks5 proxy
This commit is contained in:
@@ -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
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user