games: add pcsx2 and steam-hardware

This commit is contained in:
Timothy DeHerrera 2020-06-14 12:30:01 -06:00
parent 1efc3eab51
commit ea1d06c017
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
2 changed files with 21 additions and 2 deletions

11
overlays/pcsx2.nix Normal file
View File

@ -0,0 +1,11 @@
final: prev: {
pcsx2 = prev.pcsx2.overrideAttrs (o: rec {
version = "1.6.0";
src = prev.fetchFromGitHub {
owner = "PCSX2";
repo = "pcsx2";
rev = "v${version}";
hash = "sha256-iqNOLhNqj+ja0YIyVi/6gZXBYGN+eu02LUiUIwacSBQ=";
};
});
}

View File

@ -1,6 +1,12 @@
{ pkgs, ... }: {
{ unstablePkgs, ... }: {
imports = [ ../graphical ./udev.nix ];
environment.systemPackages = with pkgs; [ retroarchBare steam steam-run ];
environment.systemPackages = with unstablePkgs; [
retroarchBare
steam
steam-run
pcsx2
qjoypad
];
# fps games on laptop need this
services.xserver.libinput.disableWhileTyping = false;
@ -9,6 +15,8 @@
hardware.opengl.driSupport32Bit = true;
hardware.pulseaudio.support32Bit = true;
hardware.steam-hardware.enable = true;
# better for steam proton games
systemd.extraConfig = "DefaultLimitNOFILE=1048576";