From d2747292dff98c64b974bdfe6b46bc62252298de Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Mon, 23 Feb 2026 15:09:58 -0600 Subject: clean up services --- modules/services/nixos/qbittorrent.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/services/nixos/qbittorrent.nix (limited to 'modules/services/nixos/qbittorrent.nix') diff --git a/modules/services/nixos/qbittorrent.nix b/modules/services/nixos/qbittorrent.nix new file mode 100644 index 0000000..af3cdbc --- /dev/null +++ b/modules/services/nixos/qbittorrent.nix @@ -0,0 +1,24 @@ +{ + lib, + config, + ... +}: let + cfg = config.collinux.services.qbittorrent; +in { + imports = [ + (import ./mkCaddyCfg.nix cfg) + ]; + + config = lib.mkIf cfg.enable { + users.users."qbittorrent".extraGroups = ["fileserver"]; # torrent files go to /media/library + + networking.firewall.allowedTCPPorts = [6882]; + networking.firewall.allowedUDPPorts = [6882]; + + services.qbittorrent = { + enable = true; + webuiPort = cfg.port; + torrentingPort = 6882; + }; + }; +} -- cgit v1.3.1