diff options
Diffstat (limited to 'modules/tools')
| -rw-r--r-- | modules/tools/default.nix | 2 | ||||
| -rw-r--r-- | modules/tools/tor-browser/default.nix | 19 | ||||
| -rw-r--r-- | modules/tools/tor/default.nix | 26 |
3 files changed, 27 insertions, 20 deletions
diff --git a/modules/tools/default.nix b/modules/tools/default.nix index 9afb82c..cc926a1 100644 --- a/modules/tools/default.nix +++ b/modules/tools/default.nix @@ -32,7 +32,7 @@ ./starship ./systemctl-tui ./tmux - ./tor-browser + ./tor ./umu-launcher ./unar ./vlc diff --git a/modules/tools/tor-browser/default.nix b/modules/tools/tor-browser/default.nix deleted file mode 100644 index 917f07a..0000000 --- a/modules/tools/tor-browser/default.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ - pkgs, - lib, - config, - ... -}: - -# Tor Browser - Anonymous web browser using Tor network -{ - options.tools.tor-browser = { - enable = lib.mkEnableOption "Enables tor-browser."; - }; - - config = lib.mkIf config.tools.tor-browser.enable { - home.packages = with pkgs; [ - tor-browser - ]; - }; -} diff --git a/modules/tools/tor/default.nix b/modules/tools/tor/default.nix new file mode 100644 index 0000000..a2af4aa --- /dev/null +++ b/modules/tools/tor/default.nix @@ -0,0 +1,26 @@ +{ + pkgs, + lib, + config, + ... +}: + +# Tor - Local proxy server for connecting to the tor network +{ + options.tools.tor = { + enable = lib.mkEnableOption "Enables tor."; + }; + + config = lib.mkIf config.tools.tor.enable { + home.packages = with pkgs; [ + tor + ]; + + home.file.".config/tor/torrc".text = '' + SocksPort 127.0.0.1:9050 + CookieAuthentication 1 + # Prevents Tor from writing to disk too much + AvoidDiskWrites 1 + ''; + }; +} |
