Get steam to respect XDG conventions

This commit is contained in:
Henrik Lissner 2020-01-14 06:55:14 -05:00
parent f3c33caef1
commit 5414f78f1e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -2,8 +2,16 @@
{ {
my.packages = with pkgs; [ my.packages = with pkgs; [
steam # Get steam to keep its garbage out of $HOME
steam-run-native # for GOG or humblebundle games (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 xboxdrv # driver for 360 controller
]; ];