aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/tools/default.nix2
-rw-r--r--modules/tools/tor-browser/default.nix19
-rw-r--r--modules/tools/tor/default.nix26
-rw-r--r--users/arpit.nix2
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;