steam: add temporary fix for switching generations

This commit is contained in:
Leonardo Eugênio 2023-08-04 01:31:28 -03:00
parent 429e490bb5
commit ed0a0412bb
3 changed files with 26 additions and 5 deletions

View file

@ -1,6 +1,12 @@
{ config, pkgs, inputs, ... }: {
{ config, pkgs, inputs, ... }:
let
pkgs' = import inputs.nixpkgs-fixed-steam {
inherit (pkgs) system config;
};
in
{
programs.steam.enable = true;
programs.steam.package = pkgs.steam.override {
programs.steam.package = pkgs'.steam.override {
extraLibraries = pkgs: with config.hardware.opengl;
if pkgs.hostPlatform.is64bit
then [ package ] ++ extraPackages
@ -12,9 +18,6 @@
mangohud
xdg-user-dirs
];
extraProfile = ''
export GSETTINGS_SCHEMA_DIR="${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas/"
'';
};
environment.systemPackages = with pkgs; [
protontricks