helm/modules/gaming/steam.nix

21 lines
561 B
Nix
Raw Normal View History

2019-08-06 10:56:54 -07:00
{ config, lib, pkgs, ... }:
{
2020-01-12 15:17:17 -08:00
my.packages = with pkgs; [
2020-01-14 03:55:14 -08:00
# 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 "$@"
'')
2020-01-13 21:26:00 -08:00
xboxdrv # driver for 360 controller
2019-08-06 10:56:54 -07:00
];
hardware.opengl.driSupport32Bit = true;
hardware.pulseaudio.support32Bit = true;
}