nixos-config/home/gaming/steam.nix

30 lines
804 B
Nix
Raw Normal View History

2021-08-01 14:44:23 +02:00
{ config, pkgs, nixosConfig, ... }:
let
steam = pkgs.steam.override {
extraLibraries = pkgs:
with nixosConfig.hardware.opengl;
if pkgs.hostPlatform.is64bit then
[ package ] ++ extraPackages
else
[ package32 ] ++ extraPackages32;
};
in {
2021-08-07 22:08:00 +02:00
home.packages = [ steam steam.run pkgs.protontricks ];
2021-08-07 22:08:00 +02:00
home.file = {
proton-ge = let
version = "GE-Proton7-29";
source = builtins.fetchTarball {
url =
"https://github.com/GloriousEggroll/proton-ge-custom/releases/download/${version}/${version}.tar.gz";
sha256 = "1j4i7frfvahxjkjxcsvmfsz5hkd58hg1h8j9k9gzpq4xlnwhf4di";
};
2021-08-07 22:08:00 +02:00
in rec {
recursive = true;
inherit source;
2022-01-28 18:00:35 +01:00
target = ".local/share/Steam/compatibilitytools.d/Proton-${version}/";
};
};
}