summaryrefslogtreecommitdiff
path: root/hosts/ahmed/torrenting/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/ahmed/torrenting/default.nix')
-rw-r--r--hosts/ahmed/torrenting/default.nix29
1 files changed, 5 insertions, 24 deletions
diff --git a/hosts/ahmed/torrenting/default.nix b/hosts/ahmed/torrenting/default.nix
index efa4403..c8e498b 100644
--- a/hosts/ahmed/torrenting/default.nix
+++ b/hosts/ahmed/torrenting/default.nix
@@ -4,42 +4,23 @@
options,
config,
...
-}: let
- downloadPath = "/srv/media/";
-in {
+}: {
imports = [
./wireguard.nix
./reverse-proxy.nix
+ ./save-path.nix
];
- # Configure the actual qBittorrent service.
services.qbittorrent = {
enable = true;
-
settings = {
- BitTorrent = {
- # Use the specified download path for finished torrents.
- "Session\\DefaultSavePath" = downloadPath;
- "Session\\TempPath" = "${config.services.qbittorrent.profile}/qBittorrent/temp";
- "Session\\TempPathEnabled" = true;
- };
-
Preferences = {
- # Again??
- "Downloads\\SavePath" = downloadPath;
+ # 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==)";
};
};
};
- # WARNING: Jellyfin has been manually configured to serve from the correct download path.
services.jellyfin.enable = true;
-
- # Create the directory to which media will be downloaded. This will be used
- # by qBittorent to hold files and Jellyfin will serve from it.
- systemd.tmpfiles.rules = let
- user = config.services.qbittorrent.user;
- group = config.services.qbittorrent.group;
- in [
- "d ${downloadPath} 0755 ${user} ${group}"
- ];
}