aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-11-28 13:55:28 +0100
committerKatharina Fey <kookie@spacekookie.de>2019-11-28 13:55:28 +0100
commit617e77ba113745ec69b93256cb09893ab9001488 (patch)
tree496ef960ed31473dad1f4b7ba5dd895916072e4d /modules
parent9317edc7ab78735a15463db060b19e900a675cdf (diff)
server/tor: init with hyp3rions config
Diffstat (limited to 'modules')
-rw-r--r--modules/server/tor/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/server/tor/default.nix b/modules/server/tor/default.nix
new file mode 100644
index 00000000000..7af4eee250d
--- /dev/null
+++ b/modules/server/tor/default.nix
@@ -0,0 +1,24 @@
+/* ONIONS ARE REALLY GOOD
+ *
+ * This module is not included by default and is somewhat specific
+ * to the hyperion root server
+ *
+ * TODO: make this a function that allows pasing a hostname and
+ * more specific settings
+ */
+
+{ config, pkgs, ... }:
+
+{
+ networking.firewall.allowedTCPPorts = [ 143 ];
+
+ services.tor = {
+ enable = true;
+ relay = {
+ enable = true;
+ role = "relay";
+ nickname = "hyp3rion";
+ port = 143;
+ };
+ };
+}