dotfiles/os/gaming/default.nix

30 lines
983 B
Nix
Raw Normal View History

2023-12-02 21:50:59 +01:00
{ pkgs, lib, config, ... }:
{
2024-01-07 12:54:43 +01:00
config = lib.mkIf config.frogeye.gaming
{
programs.steam.enable = true;
2024-12-03 23:07:46 +01:00
hardware.graphics.enable32Bit = true; # Needed by Steam
services = {
udev.packages = [ pkgs.python3Packages.ds4drv ];
xserver.config = ''
# Disable mouse support for joypad
Section "InputClass"
Identifier "joystick catchall"
MatchIsJoystick "on"
MatchDevicePath "/dev/input/event*"
Driver "joystick"
Option "StartKeysEnabled" "False"
Option "StartMouseEnabled" "False"
EndSection
# Same thing for DualShock 4 touchpad
Section "InputClass"
Identifier "ds4-touchpad"
Driver "libinput"
MatchProduct "Wireless Controller Touchpad"
Option "Ignore" "True"
EndSection
'';
};
2024-01-07 12:54:43 +01:00
};
2023-12-02 21:50:59 +01:00
}