aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/configuration/server/tor/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/configuration/server/tor/default.nix')
-rw-r--r--infra/libkookie/configuration/server/tor/default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/infra/libkookie/configuration/server/tor/default.nix b/infra/libkookie/configuration/server/tor/default.nix
new file mode 100644
index 000000000000..cbd4d8e30325
--- /dev/null
+++ b/infra/libkookie/configuration/server/tor/default.nix
@@ -0,0 +1,19 @@
+{ config, ... }:
+
+{
+ networking.firewall.allowedTCPPorts = [ 143 ];
+
+ services.tor = {
+ enable = true;
+ relay = {
+ enable = true;
+ role = "relay";
+ nickname = "hyperion";
+ contactInfo = "kookie@spacekookie.de";
+ port = 143;
+ };
+ extraConfig = ''
+ ORPort [2a01:4f9:2b:1148::]:143
+ '';
+ };
+}