From c3f4f060547b6b88f5e3673ecd46463e1521f7b1 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 8 Oct 2024 20:16:26 +0400 Subject: [PATCH] sigma sigma on the wall, i hear them in my head again the voices are back the voices are back the voices are back the voices are back the voices are back the voices are back the voices are back the voices are back the voices are back the voices are back the voices are back the voices are back --- modules/security/default.nix | 2 +- modules/security/tor.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 modules/security/tor.nix diff --git a/modules/security/default.nix b/modules/security/default.nix index b6aae161..d6b784c6 100644 --- a/modules/security/default.nix +++ b/modules/security/default.nix @@ -1 +1 @@ -{ imports = [ ./age.nix ./certs ]; } +{ imports = [ ./age.nix ./certs ./tor.nix ]; } diff --git a/modules/security/tor.nix b/modules/security/tor.nix new file mode 100644 index 00000000..c7481111 --- /dev/null +++ b/modules/security/tor.nix @@ -0,0 +1,13 @@ +{ outputs, options, config, lib, pkgs, ... }: +let cfg = config.modules.security.tor; +in { + options.modules.security.tor = { enable = lib.mkEnableOption false; }; + + config = lib.mkIf cfg.enable { + services.tor = { + enable = true; + torsocks.enable = true; + client = { enable = true; }; + }; + }; +}