|
116 | 116 | if nixflix.nginx.enable |
117 | 117 | then "/sabnzbd" |
118 | 118 | else "/"; |
| 119 | + defaultText = lib.literalExpression ''if config.nixflix.nginx.enable then "/sabnzbd" else "/"''; |
119 | 120 | description = "URL base path for the web interface"; |
120 | 121 | }; |
121 | 122 |
|
|
158 | 159 | download_dir = mkOption { |
159 | 160 | type = types.str; |
160 | 161 | default = "${cfg.downloadsDir}/incomplete"; |
| 162 | + defaultText = lib.literalExpression ''config.nixflix.sabnzbd.downloadsDir + "/incomplete"''; |
161 | 163 | description = "Incomplete downloads directory"; |
162 | 164 | }; |
163 | 165 |
|
164 | 166 | complete_dir = mkOption { |
165 | 167 | type = types.str; |
166 | 168 | default = "${cfg.downloadsDir}/complete"; |
| 169 | + defaultText = lib.literalExpression ''config.nixflix.sabnzbd.downloadsDir + "/complete"''; |
167 | 170 | description = "Complete downloads directory"; |
168 | 171 | }; |
169 | 172 |
|
170 | 173 | dirscan_dir = mkOption { |
171 | 174 | type = types.str; |
172 | 175 | default = "${cfg.downloadsDir}/watch"; |
| 176 | + defaultText = lib.literalExpression ''config.nixflix.sabnzbd.downloadsDir + "/watch"''; |
173 | 177 | description = "Directory to watch for NZB files"; |
174 | 178 | }; |
175 | 179 |
|
|
182 | 186 | nzb_backup_dir = mkOption { |
183 | 187 | type = types.str; |
184 | 188 | default = "${cfg.downloadsDir}/nzb-backup"; |
| 189 | + defaultText = lib.literalExpression ''config.nixflix.sabnzbd.downloadsDir + "/nzb-backup"''; |
185 | 190 | description = "NZB backup directory"; |
186 | 191 | }; |
187 | 192 |
|
188 | 193 | admin_dir = mkOption { |
189 | 194 | type = types.str; |
190 | 195 | default = "${cfg.downloadsDir}/admin"; |
| 196 | + defaultText = lib.literalExpression ''config.nixflix.sabnzbd.downloadsDir + "/admin"''; |
191 | 197 | description = "Admin directory"; |
192 | 198 | }; |
193 | 199 |
|
194 | 200 | log_dir = mkOption { |
195 | 201 | type = types.str; |
196 | 202 | default = "${cfg.downloadsDir}/logs"; |
| 203 | + defaultText = lib.literalExpression ''config.nixflix.sabnzbd.downloadsDir + "/logs"''; |
197 | 204 | description = "Log directory"; |
198 | 205 | }; |
199 | 206 |
|
|
427 | 434 | script = "None"; |
428 | 435 | } |
429 | 436 | ]; |
| 437 | + example = lib.literalExpression '' |
| 438 | + [ |
| 439 | + { |
| 440 | + name = "movies"; |
| 441 | + dir = "movies"; |
| 442 | + priority = 0; |
| 443 | + pp = 3; |
| 444 | + script = "None"; |
| 445 | + } |
| 446 | + { |
| 447 | + name = "tv"; |
| 448 | + dir = "tv"; |
| 449 | + priority = 0; |
| 450 | + pp = 3; |
| 451 | + script = "None"; |
| 452 | + } |
| 453 | + ] |
| 454 | + ''; |
430 | 455 | description = "Download categories"; |
431 | 456 | }; |
432 | 457 | }; |
|
0 commit comments