diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-12-25 22:13:56 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-12-25 22:13:56 +0100 |
commit | b3317c7cdde522f01f56f5a0799163beb0c219b8 (patch) | |
tree | 06e67f310c6d1d35c478775f140be1bf3f04c6a1 /infra/libkookie/configuration/server/tor/default.nix | |
parent | 13b1f4b6f67012010d58411f86da6f1d35299b78 (diff) |
libkookie: hyperion: import configuration from legacy installation
Diffstat (limited to 'infra/libkookie/configuration/server/tor/default.nix')
-rw-r--r-- | infra/libkookie/configuration/server/tor/default.nix | 19 |
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 + ''; + }; +} |