all repos — nixfiles @ 340b2c244c0b7c331f6633edf9a69f1381916ad2

System and user configuration, managed by nix and home-manager

Add 'system/' from commit '5016c7440ad771fd990e1aa142fc4de0bdc382bd' git-subtree-dir: system git-subtree-mainline: ec7f1357d16ff2f4aa7430a2940a0b9519018595 git-subtree-split: 5016c7440ad771fd990e1aa142fc4de0bdc382bd

Alan Pearce
commit

340b2c244c0b7c331f6633edf9a69f1381916ad2

parent

ec7f1357d16ff2f4aa7430a2940a0b9519018595

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

changed files
A system/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"; + }; + }; +}