diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-02-23 15:09:58 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-02-23 15:09:58 -0600 |
| commit | d2747292dff98c64b974bdfe6b46bc62252298de (patch) | |
| tree | eec31506ba7e7b66888b4b05cb7d9fe720a2e42d /modules/services/nixos/qbittorrent.nix | |
| parent | 66232d31d1f115a796dc76a9f6df88a6b13c424e (diff) | |
clean up services
Diffstat (limited to 'modules/services/nixos/qbittorrent.nix')
| -rw-r--r-- | modules/services/nixos/qbittorrent.nix | 24 |
1 files changed, 24 insertions, 0 deletions
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; + }; + }; +} |
