Passthrough the credentialsFile transmission option
This commit is contained in:
@@ -234,6 +234,17 @@ in {
|
|||||||
description = "Transmission web-UI port.";
|
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 {
|
extraSettings = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
default = {};
|
default = {};
|
||||||
@@ -339,6 +350,7 @@ in {
|
|||||||
package = pkgs.transmission_4;
|
package = pkgs.transmission_4;
|
||||||
openRPCPort = cfg.openFirewall;
|
openRPCPort = cfg.openFirewall;
|
||||||
openPeerPorts = cfg.openFirewall;
|
openPeerPorts = cfg.openFirewall;
|
||||||
|
credentialsFile = cfg.credentialsFile;
|
||||||
settings =
|
settings =
|
||||||
{
|
{
|
||||||
download-dir = downloadDir;
|
download-dir = downloadDir;
|
||||||
|
|||||||
Reference in New Issue
Block a user