Passthrough the credentialsFile transmission option

This commit is contained in:
jsecchiero
2024-06-23 21:24:22 +02:00
parent 68a334c488
commit 88c99d2f37
+12
View File
@@ -234,6 +234,17 @@ in {
description = "Transmission web-UI port.";
};
credentialsFile = mkOption {
type = types.path;
description = ''
Path to a JSON file to be merged with the settings.
Useful to merge a file which is better kept out of the Nix store
to set secret config parameters like `rpc-password`.
'';
default = "/dev/null";
example = "/var/lib/secrets/transmission/settings.json";
};
extraSettings = mkOption {
type = types.attrs;
default = {};
@@ -339,6 +350,7 @@ in {
package = pkgs.transmission_4;
openRPCPort = cfg.openFirewall;
openPeerPorts = cfg.openFirewall;
credentialsFile = cfg.credentialsFile;
settings =
{
download-dir = downloadDir;