blob: 7137bfa1394de4b72b1747a8eb98f4f9aeeb9504 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ lib, ... }: {
programs.steam.enable = true;
nixpkgs.config = {
allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-runtime"
];
packageOverrides = pkgs: {
steam =
pkgs.steam.override { extraPkgs = pkgs: with pkgs; [ libgdiplus ]; };
};
};
environment.sessionVariables = rec {
# Steam needs this to find Proton-GE
STEAM_EXTRA_COMPAT_TOOLS_PATHS =
"\${HOME}/.steam/root/compatibilitytools.d";
# note: this doesn't replace PATH, it just adds this to it
PATH = [ "\${XDG_BIN_HOME}" ];
};
}
|