diff --git a/modules/audio-server.nix b/modules/audio-server.nix index 5d62e1ed..5099d4f4 100644 --- a/modules/audio-server.nix +++ b/modules/audio-server.nix @@ -73,7 +73,18 @@ }) ]; - security.rtkit.enable = true; + security = { + polkit.extraConfig = /* javascript */ '' + # https://www.reddit.com/r/voidlinux/comments/o74i76/comment/h2z9u11/?utm_source=reddit&utm_medium=web2x&context=3 + polkit.addRule(function(action, subject) { + if (action.id == "org.freedesktop.RealtimeKit1.acquire-high-priority" + || action.id == "org.freedesktop.RealtimeKit1.acquire-real-time") { + return polkit.Result.YES; + } + }); + ''; + rtkit.enable = true; + }; services.pipewire = { enable = true;