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

@ -598,6 +598,22 @@
"type": "github"
}
},
"nixpkgs-fixed-steam": {
"locked": {
"lastModified": 1691123104,
"narHash": "sha256-5dx7Tj2EdVG0qn3O5CyNEvM8jo+w715CRDSCd5MFueU=",
"owner": "lelgenio",
"repo": "nixpkgs",
"rev": "335f50b1d2b8ea9812042f363242d6aa49e80aea",
"type": "github"
},
"original": {
"owner": "lelgenio",
"ref": "test-steam-fix",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1673796341,
@ -691,6 +707,7 @@
"nix-software-center": "nix-software-center",
"nixos-conf-editor": "nixos-conf-editor",
"nixpkgs": "nixpkgs_3",
"nixpkgs-fixed-steam": "nixpkgs-fixed-steam",
"nur": "nur",
"plymouth-themes": "plymouth-themes",
"ranger-icons": "ranger-icons",

View File

@ -60,6 +60,7 @@
url = "github:lelgenio/wl-crosshair";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs-fixed-steam.url = "github:lelgenio/nixpkgs/test-steam-fix";
# gnome stuff
nixos-conf-editor.url = "github:vlinkz/nixos-conf-editor";

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