summaryrefslogtreecommitdiff
path: root/hosts/ahmed/torrenting/default.nix
blob: 666c894f52a2f505c6c31c44c2d56ff9e16471a3 (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(KCBHD0C70+/50xW/zkIUiw==:WY6phmLjJza//fD6w6fXwqzLCYIQjFMRQ3hlqYVIRcKVNHh1fYjMHlI1aBPciJtDdBABq3/D2hOuhQpAt3oUXQ==)";
      };
    };
  };

  services.jellyfin.enable = true;
}