Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Tor

{
  config,
  lib,
  ...
}:
let
  cfg = config.dr460nixed.tor;
in
{
  options.dr460nixed.tor = {
    enable = lib.mkEnableOption "the Tor network";
  };

  config = lib.mkIf cfg.enable {
    services.tor = {
      client.dns.enable = true;
      client.enable = true;
      enable = true;
      torsocks.enable = true;
    };
  };
}