From db9b3e4fb5e1ece50f25b8342459a8ffbd075e13 Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Thu, 18 May 2023 14:21:22 +0200 Subject: [PATCH] Add Tor service to amon --- nixos/amon/configuration.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/nixos/amon/configuration.nix b/nixos/amon/configuration.nix index ecfce02..7807b5d 100644 --- a/nixos/amon/configuration.nix +++ b/nixos/amon/configuration.nix @@ -34,7 +34,27 @@ time.timeZone = "Europe/Berlin"; - + services.tor = { + enable = true; + enableGeoIP = false; + relay.onionServices = { + kreig = { + version = 3; + map = [{ + port = 80; + target = { + addr = "[::1]"; + port = 8666; + }; + }]; + }; + }; + settings = { + ClientUseIPv4 = false; + ClientUseIPv6 = true; + ClientPreferIPv6ORPort = true; + }; + }; i18n.defaultLocale = "en_US.UTF-8"; console = {