From 84cbb13782ce2d2612652549a2515551dae29b99 Mon Sep 17 00:00:00 2001 From: Toast Date: Wed, 27 Sep 2023 00:02:00 +0200 Subject: [PATCH] Rpcs3: increase memlock limit --- roles/gaming/rpcs3.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/gaming/rpcs3.nix b/roles/gaming/rpcs3.nix index 43b80d0..931b7ba 100644 --- a/roles/gaming/rpcs3.nix +++ b/roles/gaming/rpcs3.nix @@ -2,4 +2,12 @@ { environment.systemPackages = with pkgs; [ rpcs3 ]; + + # Increase the memory lock limit + security.pam.loginLimits = [{ + domain = "*"; + item = "memlock"; + type = "-"; # Applies to both hard and soft limits + value = "unlimited"; + }]; }