From e8dc30712520b0e4319bcc05ae82127b6adde15a Mon Sep 17 00:00:00 2001 From: Alex Stan Date: Tue, 9 Apr 2024 23:25:40 +0300 Subject: [PATCH] towor Signed-off-by: Alex Stan --- hosts/titan/configuration.nix | 1 + hosts/titan/services/tor.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 hosts/titan/services/tor.nix diff --git a/hosts/titan/configuration.nix b/hosts/titan/configuration.nix index 5e19f1c..8368d15 100644 --- a/hosts/titan/configuration.nix +++ b/hosts/titan/configuration.nix @@ -17,6 +17,7 @@ in { ( import ./services/cloud.nix inputs ) ( import ./services/vaultwarden.nix inputs ) ( import ./services/matrix.nix inputs ) + ( import ./services/tor.nix inputs ) # ( import ./services/office.nix inputs ) # ( import ./services/Sharkey inputs ) # ( import ./services/caddy.nix inputs ) # doesn't work diff --git a/hosts/titan/services/tor.nix b/hosts/titan/services/tor.nix new file mode 100644 index 0000000..05f09f3 --- /dev/null +++ b/hosts/titan/services/tor.nix @@ -0,0 +1,17 @@ +inputs: { ... }: { # I probably don't need the inputs, but I'm adding them + # as an argument to be consistent with my other service modules + services.tor = { + enable = true; # fuck censorship, long live privacy and anonimity + relay = { + enable = true; + role = "relay"; # I don't want the police to show up at my door + }; + settings = { + ORPort = 9001; + ControlPort = 9051; + Nickname = "graphite"; + BandWidthRate = "100 MBytes"; + Address = "tor.phite.ro"; + }; + }; +}