Enable TOR only for workstations
This commit is contained in:
parent
32d372fbc2
commit
41f3426bde
1 changed files with 13 additions and 9 deletions
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue