From 1851e011a5aa8994dd81ea7a9d22a2fb3c9e29e0 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 9 Oct 2024 06:29:58 +0400 Subject: [PATCH] number 6 with extra cheese please --- modules/security/tor.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/security/tor.nix b/modules/security/tor.nix index 13240e7f..33b3be70 100644 --- a/modules/security/tor.nix +++ b/modules/security/tor.nix @@ -5,6 +5,12 @@ in { config = lib.mkIf cfg.enable { + age.secrets.torrc = { + file = ../../secrets/shared/torrc.age; + owner = "tor"; + group = "tor"; + }; + users.users.sako.packages = with pkgs; [ tor-browser ]; services.tor = { @@ -12,5 +18,8 @@ in { torsocks.enable = true; client = { enable = true; }; }; + + environment.etc = { "tor/torrc".source = config.age.secrets.torrc.path; }; + }; }