about summary refs log tree commit diff stats
path: root/modules/nixos/sils/tor.nix
blob: 01fdc1fe2f968df6b8124f93df4a7ba64199150d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  config,
  pkgs,
  lib,
  ...
}: let
  cfg = config.sils.tor;
in {
  options.sils.tor.enable = lib.mkEnableOption "tor";
  config = lib.mkIf cfg.enable {
    services = {
      tor = {
        enable = true;
        torsocks.enable = true;
        client.enable = true;
      };
      snowflake-proxy = {
        enable = true;
        capacity = 5;
      };
    };
  };
}