aboutsummaryrefslogtreecommitdiff
path: root/share/system/steam.nix
diff options
context:
space:
mode:
Diffstat (limited to 'share/system/steam.nix')
-rw-r--r--share/system/steam.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/share/system/steam.nix b/share/system/steam.nix
new file mode 100644
index 0000000..7137bfa
--- /dev/null
+++ b/share/system/steam.nix
@@ -0,0 +1,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}" ];
+ };
+}