cluster/services/tor: init
This commit is contained in:
parent
e36260c449
commit
eccf23ce9e
2 changed files with 23 additions and 0 deletions
17
cluster/services/tor/client.nix
Normal file
17
cluster/services/tor/client.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
links.torSocks.protocol = "socks5h";
|
||||||
|
|
||||||
|
services.tor = {
|
||||||
|
enable = true;
|
||||||
|
client = {
|
||||||
|
enable = true;
|
||||||
|
socksListenAddress = {
|
||||||
|
IsolateDestAddr = true;
|
||||||
|
addr = config.links.torSocks.ipv4;
|
||||||
|
port = config.links.torSocks.port;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
6
cluster/services/tor/default.nix
Normal file
6
cluster/services/tor/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
services.tor-client = {
|
||||||
|
nodes.client = [ "VEGAS" ];
|
||||||
|
nixos.client = ./client.nix;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue