all repos — archive/nixos-configuration @ 006c0cc4659e20e47541657bbd192492c6461aa2

Superseded by nixfiles

Separate GnuPG, Keybase and Tor

Alan Pearce
commit

006c0cc4659e20e47541657bbd192492c6461aa2

parent

32827c9f15a158877e10bc35e39c73e2e3486a90

1 file changed, 22 insertions(+), 0 deletions(-)

changed files
A modules/programs/tor.nix
@@ -0,0 +1,22 @@
+{ config, pkgs, lib, ... }: + +{ + services.tor = { + enable = true; + client = { + enable = true; + socksListenAddress = "9050 IPv6Traffic"; + }; + torsocks = { + enable = true; + }; + }; + systemd.services.tor.wantedBy = lib.mkForce []; + systemd.timers.tor = { + description = "Delayed startup of Tor"; + wantedBy = [ "timers.target" ]; + timerConfig = { + OnActiveSec = "1 min"; + }; + }; +}