From 2535c0966b19938ab4c110bf8f102ecda3ec398f Mon Sep 17 00:00:00 2001 From: smayzy Date: Sat, 1 Nov 2025 17:16:49 +0100 Subject: [PATCH] add qbittorrent --- hosts/desktop1/configuration.nix | 1 + modules/nix/networking/default.nix | 1 + modules/nix/networking/qbittorrent.nix | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 modules/nix/networking/qbittorrent.nix diff --git a/hosts/desktop1/configuration.nix b/hosts/desktop1/configuration.nix index 58f8c3b..13f820a 100644 --- a/hosts/desktop1/configuration.nix +++ b/hosts/desktop1/configuration.nix @@ -62,6 +62,7 @@ gateway = "192.168.1.254"; }; }; + qbittorrent.enable = true; }; home-manager = { diff --git a/modules/nix/networking/default.nix b/modules/nix/networking/default.nix index 735eff3..1bd72ab 100644 --- a/modules/nix/networking/default.nix +++ b/modules/nix/networking/default.nix @@ -3,5 +3,6 @@ imports = [ ./openssh.nix ./wireshark.nix + ./qbittorrent.nix ]; } diff --git a/modules/nix/networking/qbittorrent.nix b/modules/nix/networking/qbittorrent.nix new file mode 100644 index 0000000..90959bb --- /dev/null +++ b/modules/nix/networking/qbittorrent.nix @@ -0,0 +1,20 @@ +{ + lib, + config, + pkgs, + ... +}: +let + inherit (lib) mkIf mkOption types; +in +{ + options.smayzy.qbittorrent.enable = mkOption { + type = types.bool; + default = false; + description = "qbittorrent"; + }; + + config = mkIf config.smayzy.qbittorrent.enable { + environment.systemPackages = with pkgs; [ qbittorrent ]; + }; +}