mv tor to modules
All checks were successful
nix flake show / show-flake (push) Successful in 31s

This commit is contained in:
smayzy 2025-07-21 15:42:52 +02:00
parent 2dc084b0ea
commit d4d2f6d51c
3 changed files with 20 additions and 1 deletions

View File

@ -18,7 +18,6 @@
environment.systemPackages = with pkgs; [
home-manager
tor
mpv
];

View File

@ -3,5 +3,6 @@
imports = [
./mullvad.nix
./wireguard.nix
./tor.nix
];
}

19
modules/nix/vpn/tor.nix Normal file
View File

@ -0,0 +1,19 @@
{ 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;
};
}