1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

Merge pull request #335066 from K900/pipewire-limits

nixos/pipewire: install the default limits config, make group always exist
This commit is contained in:
K900 2024-08-16 16:38:20 +03:00 committed by GitHub
commit 0d331a43ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -410,8 +410,30 @@ in {
networking.firewall.allowedUDPPorts = mkIf cfg.raopOpenFirewall [ 6001 6002 ];
users = mkIf cfg.systemWide {
users.pipewire = {
# See https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/master/src/modules/module-rt/25-pw-rlimits.conf.in
security.pam.loginLimits = [
{
domain = "@pipewire";
item = "rtprio";
type = "-";
value = 95;
}
{
domain = "@pipewire";
item = "nice";
type = "-";
value = -19;
}
{
domain = "@pipewire";
item = "memlock";
type = "-";
value = 4194304;
}
];
users = {
users.pipewire = mkIf cfg.systemWide {
uid = config.ids.uids.pipewire;
group = "pipewire";
extraGroups = [