summaryrefslogtreecommitdiff
path: root/modules/server/networking/tor.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-25 00:27:30 -0700
committerFuwn <[email protected]>2024-09-25 00:27:30 -0700
commitab91d3f91f87255c95ead437d19c6874d7c33786 (patch)
tree1db787c6883d592dd9784055fa20acd1be8911d7 /modules/server/networking/tor.nix
parentcontainers: disable whirl (diff)
downloadnixos-config-ab91d3f91f87255c95ead437d19c6874d7c33786.tar.xz
nixos-config-ab91d3f91f87255c95ead437d19c6874d7c33786.zip
networking: mirror september over tor
Diffstat (limited to 'modules/server/networking/tor.nix')
-rw-r--r--modules/server/networking/tor.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/server/networking/tor.nix b/modules/server/networking/tor.nix
new file mode 100644
index 0000000..ab9afcc
--- /dev/null
+++ b/modules/server/networking/tor.nix
@@ -0,0 +1,37 @@
+{
+ services.tor = {
+ enable = true;
+ enableGeoIP = false;
+
+ relay.onionServices = {
+ "fuwn.me" = {
+ version = 3;
+
+ map = [
+ {
+ port = 80;
+
+ target = {
+ addr = "[::1]";
+ port = 8084;
+ };
+ }
+ {
+ port = 80;
+
+ target = {
+ addr = "0.0.0.0";
+ port = 8084;
+ };
+ }
+ ];
+ };
+ };
+
+ settings = {
+ ClientUseIPv4 = true;
+ ClientUseIPv6 = true;
+ ClientPreferIPv6ORPort = true;
+ };
+ };
+}