nix-config/modules/nix/vpn/tor.nix
smayzy d4d2f6d51c
All checks were successful
nix flake show / show-flake (push) Successful in 31s
mv tor to modules
2025-07-21 15:42:52 +02:00

20 lines
354 B
Nix

{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.tor.enable = mkOption {
type = types.bool;
default = false;
description = "tor";
};
config = mkIf config.smayzy.tor.enable {
environment.systemPackages = with pkgs; [
tor
tor-browser
];
services.tor.enable = true;
};
}