tor: more instances

This commit is contained in:
Casper V. Kristensen 2024-12-30 02:32:05 +01:00
parent a05cd2471a
commit 7f4adb81da

View file

@ -55,6 +55,7 @@
MyFamily = builtins.concatStringsSep "," [
"1B9D2C9E0EFE2C6BD23D62B2FCD145886AD242D1" # /var/lib/tor-1/fingerprint
"293CE00D11B1D8B99AE8811CBDFDA3F353353710" # /var/lib/tor-2/fingerprint
"27FF3E6979EF6570B9EB3B53B11964FE08F36F19" # /var/lib/tor-3/fingerprint
];
};
};
@ -72,6 +73,11 @@
orPort = 444;
controlPort = 9052;
};
tor-3 = mkTorContainer {
stateDir = "/var/lib/tor-3/";
orPort = 445;
controlPort = 9053;
};
};
environment.systemPackages = with pkgs; [
@ -170,6 +176,12 @@
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";
}
];
};
}