blob: af3cdbc04513b756ec8b3f25e662b85e3531d4d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
};
};
}
|