nixos/music-assistant: fix yt-dlp challenge solving for YouTube Music (#462641)

This commit is contained in:
Emily
2025-11-17 19:22:20 +00:00
committed by GitHub

View File

@@ -26,6 +26,9 @@ let
finalPackage = cfg.package.override {
inherit (cfg) providers;
};
# YouTube Music needs deno with JIT to solve yt-dlp challenges
useYTMusic = lib.elem "ytmusic" cfg.providers;
in
{
@@ -89,6 +92,10 @@ in
]
++ lib.optionals (lib.elem "snapcast" cfg.providers) [
snapcast
]
++ lib.optionals useYTMusic [
deno
ffmpeg
];
serviceConfig = {
@@ -104,7 +111,7 @@ in
CapabilityBoundingSet = [ "" ];
DevicePolicy = "closed";
LockPersonality = true;
MemoryDenyWriteExecute = true;
MemoryDenyWriteExecute = !useYTMusic;
ProcSubset = "pid";
ProtectClock = true;
ProtectControlGroups = true;
@@ -125,6 +132,9 @@ in
SystemCallFilter = [
"@system-service"
"~@privileged @resources"
]
++ lib.optionals useYTMusic [
"@pkey"
];
RestrictSUIDSGID = true;
UMask = "0077";