M roles/gaming/steam.nix => roles/gaming/steam.nix +23 -0
@@ 12,6 12,29 @@ in {
"steam"
];
+ nixpkgs.config.packageOverrides = pkgs: {
+ steam = pkgs.steam.override {
+ extraPkgs = pkgs:
+ with pkgs; [
+ # for gamescope
+ # https://github.com/NixOS/nixpkgs/issues/162562#issuecomment-1523177264
+ xorg.libXcursor
+ xorg.libXi
+ xorg.libXinerama
+ xorg.libXScrnSaver
+ libpng
+ libpulseaudio
+ libvorbis
+ stdenv.cc.cc.lib
+ libkrb5
+ keyutils
+
+ # fallback fonts (e.g. for Don't Get Lost)
+ liberation_ttf
+ ];
+ };
+ };
+
programs.steam = {
enable = true;
remotePlay.openFirewall = false;