summaryrefslogtreecommitdiff
path: root/hosts/ahmed/torrenting/default.nix
blob: 39046b8b275f187a7c021114e95fa2dde8e6c4af (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
25
26
27
28
29
30
31
# This module configures the my torrenting setup. It uses qBittorrent over a VPN.
{
  pkgs,
  options,
  config,
  ...
}: {
  imports = [
    ./wireguard.nix
    ./reverse-proxy.nix
    ./save-path.nix
  ];

  services.qbittorrent = {
    enable = true;

    # We need unstable until at least 5.0.1 becomes part of stable nixpkgs.
    # See: https://sharpsec.run/rce-vulnerability-in-qbittorrent/
    package = pkgs.unstable.qbittorrent-nox;

    settings = {
      Preferences = {
        # Configure credentials. This should be safe to keep here, since the password is hashed.
        "WebUI\\Username" = "linus";
        "WebUI\\Password_PBKDF2" = "@ByteArray(wOEz+v4PMOZTIUxD+NI0sQ==:uEp16/vHvNgv71RcHHBuxm7WgjqgVZpuEWEG1KnCxrCxGX1n3y2cqQyGYDLBlpyGv8rjk3G0g+d5xuxW1izV2g==)";
      };
    };
  };

  services.jellyfin.enable = true;
}