diff options
| author | Arpit Chakladar <arpitchakladar@proton.me> | 2026-04-20 19:56:07 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@proton.me> | 2026-04-20 19:56:07 +0530 |
| commit | 6c336b432a0adc29a923a686ab1a90a6b676a241 (patch) | |
| tree | 1d152f2526b0165c77454b7cc7cb97b2b5dfdc86 | |
| parent | 468becc6b1dc32f8048ee14fb5db13742b4d00c6 (diff) | |
| download | home-manager-config-6c336b432a0adc29a923a686ab1a90a6b676a241.tar.gz home-manager-config-6c336b432a0adc29a923a686ab1a90a6b676a241.zip | |
removed tor browser and using tor server instead
| -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 | ||||
| -rw-r--r-- | users/arpit.nix | 2 |
4 files changed, 28 insertions, 21 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 + ''; + }; +} diff --git a/users/arpit.nix b/users/arpit.nix index 1ea984d..effdf61 100644 --- a/users/arpit.nix +++ b/users/arpit.nix @@ -42,7 +42,7 @@ tools.starship.enable = true; tools.systemctl-tui.enable = true; tools.tmux.enable = true; - tools.tor-browser.enable = true; + tools.tor.enable = true; tools.umu-launcher.enable = true; tools.unar.enable = true; tools.vlc.enable = true; |
