summaryrefslogtreecommitdiff
path: root/hosts/ahmed/torrenting/default.nix
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-04-11 08:36:32 +0200
committerLinnnus <[email protected]>2024-05-09 14:06:08 +0200
commit070c681f42ebae7da3ac841dcc238e7b9c91ce6e (patch)
tree9348786c59370b11c3e352f569cb7b1ed3112395 /hosts/ahmed/torrenting/default.nix
parent959d86017e005d49b401032538c4e2a80191dfe8 (diff)
torrenting: Create different categories of downloads
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}"
- ];
}