summaryrefslogtreecommitdiff
path: root/modules/tor.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tor.nix')
-rw-r--r--modules/tor.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/modules/tor.nix b/modules/tor.nix
new file mode 100644
index 0000000..548da38
--- /dev/null
+++ b/modules/tor.nix
@@ -0,0 +1,34 @@
+{ pkgs, ... }:
+
+{
+ services = {
+ tor = {
+ enable = true;
+
+ client = {
+ enable = true;
+ dns.enable = true;
+ };
+
+ settings.DNSPort = [{
+ addr = "127.0.0.1";
+ port = 53;
+ }];
+
+ torsocks.enable = true;
+ };
+
+# resolved = {
+# enable = true;
+# fallbackDns = [ "127.0.0.1:9053" ];
+# };
+ };
+
+ environment.systemPackages = with pkgs; [
+ tor
+ torsocks
+ tor-browser
+ ];
+
+ networking.nameservers = [ "127.0.0.1" ];
+}