update downloads dir setting

This commit is contained in:
Joseph Hanson 2025-01-24 10:26:06 -06:00
parent 01e9ae49ca
commit 5a421597b2

View file

@ -51,7 +51,7 @@ in
openFirewall = mkOption { openFirewall = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
description = "Open firewall port for web interface"; description = "Open firewall ports for qBittorrent";
}; };
hardening = mkOption { hardening = mkOption {
@ -86,7 +86,7 @@ in
QBT_CONFIRM_LEGAL_NOTICE = "1"; QBT_CONFIRM_LEGAL_NOTICE = "1";
QBT_WEBUI_PORT = toString cfg.webuiPort; QBT_WEBUI_PORT = toString cfg.webuiPort;
QBT_TORRENTING_PORT = toString cfg.qbittorrentPort; QBT_TORRENTING_PORT = toString cfg.qbittorrentPort;
QBT_DOWNLOADS_PATH = "${cfg.dataDir}/downloads"; QBT_DOWNLOADS_PATH = "${cfg.downloadsDir}";
XDG_CONFIG_HOME = cfg.dataDir; XDG_CONFIG_HOME = cfg.dataDir;
XDG_DATA_HOME = cfg.dataDir; XDG_DATA_HOME = cfg.dataDir;
CONFIG_DIR = "${cfg.dataDir}/qBittorrent"; CONFIG_DIR = "${cfg.dataDir}/qBittorrent";