Skip to content

Commit 2bb4c58

Browse files
authored
fix qBittorrent category save path usage (#148)
1 parent fb382ce commit 2bb4c58

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

modules/torrentClients/qbittorrent.nix

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,23 @@ in
105105
};
106106

107107
serverConfig = {
108-
BitTorrent.Session.DefaultSavePath = mkOption {
109-
type = types.str;
110-
default = "${cfg.downloadsDir}/default";
111-
defaultText = literalExpression ''"''${config.nixflix.torrentClients.qbittorrent.downloadsDir}/default"'';
112-
description = "Default save path for downloads without a category.";
108+
BitTorrent.Session = {
109+
DefaultSavePath = mkOption {
110+
type = types.str;
111+
default = "${cfg.downloadsDir}/default";
112+
defaultText = literalExpression ''"''${config.nixflix.torrentClients.qbittorrent.downloadsDir}/default"'';
113+
description = "Default save path for downloads without a category.";
114+
};
115+
116+
DisableAutoTMMByDefault = mkOption {
117+
type = types.bool;
118+
default = false;
119+
description = ''
120+
Default Torrent Management Mode. Set to false to enable category save paths.
121+
122+
`true` = `Manual`, `false` = `Automatic`
123+
'';
124+
};
113125
};
114126

115127
Preferences.WebUI.Address = mkOption {

0 commit comments

Comments
 (0)