From 3ed184c48a1154a2548df807c8aaae7888e4792c Mon Sep 17 00:00:00 2001 From: adikro Date: Wed, 8 Apr 2026 16:21:24 +0200 Subject: flake update --- os/srv/gaming.nix | 1 + os/srv/tor.nix | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'os/srv') diff --git a/os/srv/gaming.nix b/os/srv/gaming.nix index a8bba78..5de2e26 100644 --- a/os/srv/gaming.nix +++ b/os/srv/gaming.nix @@ -40,6 +40,7 @@ in home-manager.users.${username}.hm.soft.mangohud.enable = true; environment.systemPackages = with pkgs; [ + theclicker ludusavi protonplus ]; diff --git a/os/srv/tor.nix b/os/srv/tor.nix index a33f486..08c8152 100644 --- a/os/srv/tor.nix +++ b/os/srv/tor.nix @@ -1,15 +1,28 @@ { config, lib, + pkgs, ... }: let cfg = config.os.srv.tor; in { - options.os.srv.tor.enable = lib.mkEnableOption "enables tor services and browser"; - - config = lib.mkIf cfg.enable { - + options.os.srv.tor = { + enable = lib.mkEnableOption "enables tor services"; + enableBrowser = lib.mkEnableOption "enables the tor browser"; }; + + config = lib.mkMerge [ + (lib.mkIf cfg.enable { + services.tor = { + enable = true; + }; + }) + (lib.mkIf cfg.enableBrowser { + environment.systemPackages = with pkgs; [ + tor-browser + ]; + }) + ]; } -- cgit v1.3