2020-07-27 06:18:59 +02:00
|
|
|
{ pkgs, ... }: {
|
2020-06-18 04:14:37 +02:00
|
|
|
imports = [ ../graphical ./udev.nix ];
|
2020-07-27 06:18:59 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
2020-06-14 20:30:01 +02:00
|
|
|
retroarchBare
|
|
|
|
steam-run
|
|
|
|
pcsx2
|
|
|
|
qjoypad
|
|
|
|
];
|
2019-12-26 08:17:26 +01:00
|
|
|
|
2020-06-17 04:52:14 +02:00
|
|
|
services.wii-u-gc-adapter.enable = true;
|
|
|
|
|
2020-06-18 04:14:37 +02:00
|
|
|
services.gamemode.enable = true;
|
|
|
|
|
2019-12-26 08:17:26 +01:00
|
|
|
# fps games on laptop need this
|
|
|
|
services.xserver.libinput.disableWhileTyping = false;
|
|
|
|
|
2020-07-09 08:05:24 +02:00
|
|
|
# Launch steam from display managers
|
2020-07-27 06:18:59 +02:00
|
|
|
services.xserver.windowManager.steam = { enable = true; };
|
2020-07-09 08:05:24 +02:00
|
|
|
|
2019-12-26 08:17:26 +01:00
|
|
|
# 32-bit support needed for steam
|
|
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
hardware.pulseaudio.support32Bit = true;
|
|
|
|
|
2020-06-14 20:30:01 +02:00
|
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
|
2019-12-26 08:17:26 +01:00
|
|
|
# better for steam proton games
|
|
|
|
systemd.extraConfig = "DefaultLimitNOFILE=1048576";
|
|
|
|
|
|
|
|
# improve wine performance
|
2020-01-04 06:06:31 +01:00
|
|
|
environment.sessionVariables = { WINEDEBUG = "-all"; };
|
2019-12-26 08:17:26 +01:00
|
|
|
}
|