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:
commit
0d331a43ff
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue