nixpkgs/nixos/modules/services/security
Luflosi 1b34039b5f
nixos/tor: fix services.tor.client.enable = false not working
If `services.tor.client.enable` is set to false (the default), the `SOCKSPort` option is not added to the torrc file but since Tor defaults to listening on port 9050 when the option is not specified, the tor client is not actually disabled. To fix this, simply set `SOCKSPort` to 0, which disables the client.
Use `mkForce` to prevent potentially two different `SOCKSPort` options in the torrc file, with one of them being 0 as this would cause Tor to fail to start. When `services.tor.client.enable` is set to false, this should always be disabled.
2022-03-15 23:39:02 +01:00
..
vaultwarden
aesmd.nix
certmgr.nix
cfssl.nix
clamav.nix
fail2ban.nix
fprintd.nix
haka.nix
haveged.nix
hockeypuck.nix
hologram-agent.nix
hologram-server.nix
munge.nix
nginx-sso.nix
oauth2_proxy.nix
oauth2_proxy_nginx.nix
opensnitch.nix nixos/opensnitch: Add options to configure daemon 2022-03-02 18:38:56 -05:00
physlock.nix
privacyidea.nix
shibboleth-sp.nix
sks.nix
sshguard.nix
step-ca.nix
tor.nix nixos/tor: fix services.tor.client.enable = false not working 2022-03-15 23:39:02 +01:00
torify.nix
torsocks.nix
usbguard.nix
vault.nix
yubikey-agent.nix