aboutsummaryrefslogtreecommitdiff
path: root/modules/programs/steam.nix
blob: edfdc1587a2cdcc1b1e29d0cec80275ba7133e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  flake.modules.nixos.steam =
    {
      pkgs,
      ...
    }:
    {
      programs.steam = {
        enable = true;
        protontricks.enable = true;
        gamescopeSession.enable = true;
        extraCompatPackages = [ pkgs.proton-ge-bin ];
      };
      # Ignore the DualSense touchpad in libinput to prevent it from acting as a mouse
      services.udev.extraRules = ''
        ACTION=="add|change", KERNEL=="event[0-9]*", ATTRS{product}=="DualSense Wireless Controller", ENV{LIBINPUT_IGNORE_DEVICE}="1"
      '';
    };
}