From 99dfcd5c5240179ceccfc0d5a59f20514101d216 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sun, 4 Dec 2022 00:36:31 +0100 Subject: gaming: env variables for steam games --- usecases/desktop/graphical/gaming.nix | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'usecases/desktop') diff --git a/usecases/desktop/graphical/gaming.nix b/usecases/desktop/graphical/gaming.nix index 9389fae..9732865 100644 --- a/usecases/desktop/graphical/gaming.nix +++ b/usecases/desktop/graphical/gaming.nix @@ -1,16 +1,28 @@ -inputs: - -{ pkgs, lib, ... }: - -{ +inputs: { + config, + lib, + pkgs, + ... +}: { nixpkgs.overlays = [ (self: super: { - #inherit (self.unstable) steam; + inherit (self.unstable) steam; }) ]; programs.steam = { enable = true; + package = pkgs.steam.override { + extraLibraries = pkgs: + with config.hardware.opengl; + if pkgs.hostPlatform.is64bit + then [package] ++ extraPackages + else [package32] ++ extraPackages32; + extraProfile = '' + export SDL_VIDEODRIVER=x11 + export WINEDLLOVERRIDES="dinput8=n,b" + ''; + }; remotePlay.openFirewall = true; }; -- cgit v1.2.3