From 88c99d2f37aabb1e288c3ddc496ff7aed80696ce Mon Sep 17 00:00:00 2001 From: jsecchiero Date: Sun, 23 Jun 2024 21:24:22 +0200 Subject: [PATCH] Passthrough the credentialsFile transmission option --- nixarr/transmission/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nixarr/transmission/default.nix b/nixarr/transmission/default.nix index d98eef3..b3a78f5 100644 --- a/nixarr/transmission/default.nix +++ b/nixarr/transmission/default.nix @@ -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;