From 6c336b432a0adc29a923a686ab1a90a6b676a241 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Mon, 20 Apr 2026 19:56:07 +0530 Subject: removed tor browser and using tor server instead --- modules/tools/default.nix | 2 +- modules/tools/tor-browser/default.nix | 19 ------------------- modules/tools/tor/default.nix | 26 ++++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 20 deletions(-) delete mode 100644 modules/tools/tor-browser/default.nix create mode 100644 modules/tools/tor/default.nix (limited to 'modules/tools') 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 + ''; + }; +} -- cgit v1.2.3