diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-10-16 00:48:34 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-10-16 00:48:34 -0700 |
commit | 12bccb1ab913e5c1ae789455f85e29de6594469b (patch) | |
tree | c832b15333c69a5bec7ac586380e3f2ecad44332 | |
parent | 944a18f5a95f0a63db6a680cdb4db172de4bc52f (diff) | |
download | nix-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
-rw-r--r-- | hosts/common/optional/pipewire.nix | 7 |
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 = { |