From 2ed9778392ffefa89e7e9666638fa0e87bf4de99 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Mon, 30 Dec 2024 02:32:05 +0100 Subject: [PATCH] tor: more instances --- hosts/tor/tor.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/hosts/tor/tor.nix b/hosts/tor/tor.nix index 36465b6..21882f4 100644 --- a/hosts/tor/tor.nix +++ b/hosts/tor/tor.nix @@ -55,6 +55,8 @@ MyFamily = builtins.concatStringsSep "," [ "1B9D2C9E0EFE2C6BD23D62B2FCD145886AD242D1" # /var/lib/tor-1/fingerprint "293CE00D11B1D8B99AE8811CBDFDA3F353353710" # /var/lib/tor-2/fingerprint + "27FF3E6979EF6570B9EB3B53B11964FE08F36F19" # /var/lib/tor-3/fingerprint + "C2041A1CE9FDFDB13572D946A3055310FD48A595" # /var/lib/tor-4/fingerprint ]; }; }; @@ -72,6 +74,16 @@ orPort = 444; controlPort = 9052; }; + tor-3 = mkTorContainer { + stateDir = "/var/lib/tor-3/"; + orPort = 445; + controlPort = 9053; + }; + tor-4 = mkTorContainer { + stateDir = "/var/lib/tor-4/"; + orPort = 446; + controlPort = 9054; + }; }; environment.systemPackages = with pkgs; [ @@ -170,6 +182,18 @@ group = builtins.toString config.ids.gids.tor; mode = "0700"; } + { + directory = "/var/lib/tor-3"; + user = builtins.toString config.ids.uids.tor; + group = builtins.toString config.ids.gids.tor; + mode = "0700"; + } + { + directory = "/var/lib/tor-4"; + user = builtins.toString config.ids.uids.tor; + group = builtins.toString config.ids.gids.tor; + mode = "0700"; + } ]; }; }