Thanks in advance for any help!
I am trying to configure the serverConfig variable and I am not seeing anything in this variable actually written to the config. The pkg appears to be just generate a default configuration, but it does manage to set the profilDir variable, which is uses in some of the other values.
Here is my configuration, maybe I’ve done something wrong or misunderstood something:
services.qbittorrent = {
enable = true;
user = "user";
group = "group";
openFirewall = true;
torrentingPort = 6881;
profileDir = "/mnt/media/share/server/qbit";
serverConfig = {
Application = {
FileLogger = {
Enabled = true;
Path = "/mnt/media/share/server/qbit/qBittorrent/logs";
};
};
BitTorrent = {
Session = {
DefaultSavePath = "/mnt/media/share/downloads";
DisableAutoTMMByDefault = false;
DisableAutoTMMTriggers = {
CategorySavePathChanged = false;
DefaultSavePathChanged = false;
};
GlobalMaxRatio = 1;
GlobalMaxSeedingMinutes = 5000;
MaxRatioAction = 3;
MaxUploads = 100;
QueueingSystemEnabled = false;
TempPath = "/mnt/media/share/downloads/incomplete";
TempPathEnabled = true;
TorrentExportDirectory = "/mnt/media/share/downloads/torrent-files";
};
};
Core.AutoDeleteAddedTorrentFile = "Never";
LegalNotice.Accepted = true;
Preferences = {
General.Locale = "en";
WebUI = {
Port = 8080;
Username = "admin";
Password_PBKDF2 = "REDACTED";
};
};
RSS = {
AutoDownloader = {
DownloadRepacks = true;
};
};
};
};
Reproduction:
- Create configuration to deploy to host including the qbittorrent pkg
- Configure the qbittorrent pkg with a comprehensive serverConfig changing location of where torrents and torrent files go
- Deploy to nixos server
- Check the webUI for custom changes in the settings page
Expected behavior:
Downloads should end up in expected location, password should be set correctly, torrent-files should go into intended location.
System info:
- system:
"x86_64-linux" - host os:
Linux 6.14.8-2-pve, NixOS, 25.11 (Xantusia), 25.11pre-git - multi-user?:
no - sandbox:
yes - version:
nix-env (Nix) 2.28.4 - nixpkgs:
not found