nix-git/modules/tor.nix

21 lines
482 B
Nix
Raw Normal View History

2024-10-07 13:54:24 +02:00
{ config, pkgs, ... }:
{
# https://wiki.nixos.org/w/index.php?title=Tor
# `torsocks` is a wrapper to safely torify applications.
# `torsocks` should be used instead of the older `torify`.
# Example: torsocks ssh yodaNas
services = {
tor = {
enable = true;
# Enable Torsocks for transparent proxying of applications through Tor.
torsocks.enable = true;
client = {
# Enable the Tor client.
enable = true;
};
};
};
}