This commit is contained in:
parent
2dc084b0ea
commit
d4d2f6d51c
@ -18,7 +18,6 @@
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
home-manager
|
||||
tor
|
||||
mpv
|
||||
];
|
||||
|
||||
|
||||
@ -3,5 +3,6 @@
|
||||
imports = [
|
||||
./mullvad.nix
|
||||
./wireguard.nix
|
||||
./tor.nix
|
||||
];
|
||||
}
|
||||
|
||||
19
modules/nix/vpn/tor.nix
Normal file
19
modules/nix/vpn/tor.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user