aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/optional/pipewire.nix
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-10-16 00:48:34 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-10-16 00:48:34 -0700
commit12bccb1ab913e5c1ae789455f85e29de6594469b (patch)
treec832b15333c69a5bec7ac586380e3f2ecad44332 /hosts/common/optional/pipewire.nix
parent944a18f5a95f0a63db6a680cdb4db172de4bc52f (diff)
downloadnix-12bccb1ab913e5c1ae789455f85e29de6594469b.tar
nix-12bccb1ab913e5c1ae789455f85e29de6594469b.tar.gz
nix-12bccb1ab913e5c1ae789455f85e29de6594469b.tar.bz2
nix-12bccb1ab913e5c1ae789455f85e29de6594469b.tar.lz
nix-12bccb1ab913e5c1ae789455f85e29de6594469b.tar.xz
nix-12bccb1ab913e5c1ae789455f85e29de6594469b.tar.zst
nix-12bccb1ab913e5c1ae789455f85e29de6594469b.zip
Define PAM policies for audio group
Diffstat (limited to 'hosts/common/optional/pipewire.nix')
-rw-r--r--hosts/common/optional/pipewire.nix7
1 files changed, 7 insertions, 0 deletions
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 = {