nixos/music-assistant: fix yt-dlp challenge solving for YouTube Music (#462641)
This commit is contained in:
@@ -26,6 +26,9 @@ let
|
|||||||
finalPackage = cfg.package.override {
|
finalPackage = cfg.package.override {
|
||||||
inherit (cfg) providers;
|
inherit (cfg) providers;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# YouTube Music needs deno with JIT to solve yt-dlp challenges
|
||||||
|
useYTMusic = lib.elem "ytmusic" cfg.providers;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -89,6 +92,10 @@ in
|
|||||||
]
|
]
|
||||||
++ lib.optionals (lib.elem "snapcast" cfg.providers) [
|
++ lib.optionals (lib.elem "snapcast" cfg.providers) [
|
||||||
snapcast
|
snapcast
|
||||||
|
]
|
||||||
|
++ lib.optionals useYTMusic [
|
||||||
|
deno
|
||||||
|
ffmpeg
|
||||||
];
|
];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
@@ -104,7 +111,7 @@ in
|
|||||||
CapabilityBoundingSet = [ "" ];
|
CapabilityBoundingSet = [ "" ];
|
||||||
DevicePolicy = "closed";
|
DevicePolicy = "closed";
|
||||||
LockPersonality = true;
|
LockPersonality = true;
|
||||||
MemoryDenyWriteExecute = true;
|
MemoryDenyWriteExecute = !useYTMusic;
|
||||||
ProcSubset = "pid";
|
ProcSubset = "pid";
|
||||||
ProtectClock = true;
|
ProtectClock = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
@@ -125,6 +132,9 @@ in
|
|||||||
SystemCallFilter = [
|
SystemCallFilter = [
|
||||||
"@system-service"
|
"@system-service"
|
||||||
"~@privileged @resources"
|
"~@privileged @resources"
|
||||||
|
]
|
||||||
|
++ lib.optionals useYTMusic [
|
||||||
|
"@pkey"
|
||||||
];
|
];
|
||||||
RestrictSUIDSGID = true;
|
RestrictSUIDSGID = true;
|
||||||
UMask = "0077";
|
UMask = "0077";
|
||||||
|
|||||||
Reference in New Issue
Block a user