helm/modules/gaming/steam.nix
2020-01-14 06:55:14 -05:00

21 lines
561 B
Nix

{ config, lib, pkgs, ... }:
{
my.packages = with pkgs; [
# Get steam to keep its garbage out of $HOME
(writeScriptBin "steam" ''
#!${stdenv.shell}
HOME="$XDG_DATA_HOME/steamlib" exec ${steam}/bin/steam "$@"
'')
# for GOG and humblebundle games
(writeScriptBin "steam-run" ''
#!${stdenv.shell}
HOME="$XDG_DATA_HOME/steamlib" exec ${steam-run-native}/bin/steam-run "$@"
'')
xboxdrv # driver for 360 controller
];
hardware.opengl.driSupport32Bit = true;
hardware.pulseaudio.support32Bit = true;
}