From 4d30a20a9a198748ad5a32209b9681e2e332e955 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 21 Aug 2024 18:34:12 +0400 Subject: [PATCH] add qbittorrent --- hosts/sakotop/configuration.nix | 3 ++- modules/desktop/apps/default.nix | 1 + modules/desktop/apps/qbittorrent/default.nix | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 modules/desktop/apps/qbittorrent/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 33c0e149..4f77e8c3 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -51,7 +51,8 @@ pass.enable = true; rssguard.enable = true; nicotineplus.enable = true; - transmission.enable = true; + transmission.enable = false; + qbittorrent.enable = true; obs.enable = true; nextcloud.enable = true; localsend.enable = true; diff --git a/modules/desktop/apps/default.nix b/modules/desktop/apps/default.nix index d5a32256..26620f50 100644 --- a/modules/desktop/apps/default.nix +++ b/modules/desktop/apps/default.nix @@ -7,6 +7,7 @@ ./kdeconnect ./nemo ./transmission + ./qbittorrent ./kcc ./calibre ./mangal diff --git a/modules/desktop/apps/qbittorrent/default.nix b/modules/desktop/apps/qbittorrent/default.nix new file mode 100644 index 00000000..de3bb794 --- /dev/null +++ b/modules/desktop/apps/qbittorrent/default.nix @@ -0,0 +1,15 @@ +{ outputs, options, config, lib, pkgs, ...}: +let + cfg = config.modules.desktop.apps.qbittorrent; +in +{ + options.modules.desktop.apps.qbittorrent = { + enable = lib.mkEnableOption false; + }; + + config = lib.mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + qbittorrent + ]; + }; +}