diff options
author | Alex James <git@alextjam.es> | 2023-10-07 19:03:06 -0500 |
---|---|---|
committer | Alex James <git@alextjam.es> | 2023-10-08 14:42:27 -0500 |
commit | 71ab0b6c1c94fdc5d702bbe401bbf841f0d2257b (patch) | |
tree | 15b760ffa16e8748c88fe7861e67a39e3a31e715 /pkgs/applications/networking/p2p | |
parent | 922c530087f04e5f076addf274628e0bd5d4d4da (diff) |
transmission_4: add option to allow additional paths in AppArmor rules
This change adds an extraAppArmorPaths option to the transmission_4 derivation to allow additional read-only paths to be added to the ppArmor rules. This can be combined with the TRANSMISSION_WEB_HOME environment variable to override the web UI.
Diffstat (limited to 'pkgs/applications/networking/p2p')
-rw-r--r-- | pkgs/applications/networking/p2p/transmission/4.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/networking/p2p/transmission/4.nix b/pkgs/applications/networking/p2p/transmission/4.nix index 68a072687cc1e..f6fc83b1f98b3 100644 --- a/pkgs/applications/networking/p2p/transmission/4.nix +++ b/pkgs/applications/networking/p2p/transmission/4.nix @@ -35,6 +35,7 @@ , enableCli ? true , installLib ? false , apparmorRulesFromClosure +, extraAppArmorPaths ? [] }: stdenv.mkDerivation (finalAttrs: { @@ -135,6 +136,7 @@ stdenv.mkDerivation (finalAttrs: { rwk /tmp/tr_session_id_*, r $out/share/transmission/public_html/**, + ${lib.strings.concatMapStrings (x: "r ${x},\n") extraAppArmorPaths} include <local/bin.transmission-daemon> } |