Enable TOR only for workstations

This commit is contained in:
Jakob Lechner 2023-11-22 14:49:35 +00:00
parent 32d372fbc2
commit 41f3426bde
No known key found for this signature in database
GPG key ID: 996082EFB5906C10

View file

@ -1,13 +1,17 @@
{ lib, config, ... }:
{
services.tor = {
enable = true;
settings = {
DNSPort = 9053;
AutomapHostsOnResolve = true;
AutomapHostsSuffixes = [
".exit"
".onion"
];
config = lib.mkIf config.jalr.workstation.enable {
services.tor = {
enable = true;
settings = {
DNSPort = 9053;
AutomapHostsOnResolve = true;
AutomapHostsSuffixes = [
".exit"
".onion"
];
};
};
};
}