{ config, pkgs, ... }: { 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"; }]; }