From 12bccb1ab913e5c1ae789455f85e29de6594469b Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Wed, 16 Oct 2024 00:48:34 -0700 Subject: Define PAM policies for audio group --- hosts/common/optional/pipewire.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/common/optional/pipewire.nix b/hosts/common/optional/pipewire.nix index 99af36c..cf267d4 100644 --- a/hosts/common/optional/pipewire.nix +++ b/hosts/common/optional/pipewire.nix @@ -11,6 +11,13 @@ hardware.pulseaudio.enable = false; + security.pam.loginLimits = [ + { domain = "@audio"; item = "memlock"; type = "-" ; value = "unlimited"; } + { domain = "@audio"; item = "rtprio" ; type = "-" ; value = "99" ; } + { domain = "@audio"; item = "nofile" ; type = "soft"; value = "99999" ; } + { domain = "@audio"; item = "nofile" ; type = "hard"; value = "524288" ; } + ]; + security.rtkit.enable = true; services.pipewire = { -- cgit v1.2.3