add torsocks

This commit is contained in:
Daniel Langbein 2024-10-07 13:54:24 +02:00
parent 2c4d4b1004
commit c314012d5a
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
2 changed files with 33 additions and 1 deletions

View File

@ -56,13 +56,21 @@
# SuperSlicer is a PrusaSlicer fork (which is a slic3r fork) (previously Slic3r++). # SuperSlicer is a PrusaSlicer fork (which is a slic3r fork) (previously Slic3r++).
#super-slicer #super-slicer
#
# Internet Censorship Circumvention
#
#unstable.riseup-vpn # TODO wait until update arraived in unstable
#./tor-browser.nix
#./tor.nix
# #
# OFFICE # OFFICE
# #
# Graphical apps # Graphical apps
#unstable.riseup-vpn # TODO wait until update arraived in unstable
junction # Choose the application to open a specific file type or URI. junction # Choose the application to open a specific file type or URI.
epiphany # Web browser epiphany # Web browser
unstable.servo # Web browser unstable.servo # Web browser

24
modules/tor.nix Normal file
View File

@ -0,0 +1,24 @@
{ 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;
# Disable GeoIP to prevent the Tor client from estimating the locations of Tor nodes it connects to.
#enableGeoIP = false;
# Enable Torsocks for transparent proxying of applications through Tor.
torsocks.enable = true;
client = {
# Enable the Tor client.
enable = true;
# Enable DNS resolver.
dns.enable = true;
};
};
};
}