feat: add steam

This commit is contained in:
gwg313 2024-04-11 00:32:19 -04:00
parent be0f0cb73f
commit 6fe34cb3b9
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
2 changed files with 48 additions and 0 deletions

47
common/gui/steam.nix Normal file
View file

@ -0,0 +1,47 @@
{
config,
lib,
pkgs,
...
}: {
hardware.opengl.driSupport32Bit = true;
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs = pkgs:
with pkgs; [
xorg.libXcursor
xorg.libXi
xorg.libXinerama
xorg.libXScrnSaver
libpng
libpulseaudio
libvorbis
stdenv.cc.cc.lib
libkrb5
keyutils
];
};
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession = {
enable = true;
args = [
"-F fsr"
"-f"
];
};
};
environment.sessionVariables = {
# Proton GE flag
WINE_FULLSCREEN_FSR = "1";
};
environment.systemPackages = with pkgs; [
protonup
];
}

View file

@ -21,6 +21,7 @@
../../common/nixos/ssh_client.nix ../../common/nixos/ssh_client.nix
../../common/nixos/ssh_guard.nix ../../common/nixos/ssh_guard.nix
../../common/gui/hyprland.nix ../../common/gui/hyprland.nix
../../common/gui/steam.nix
../../common/gui/thunar.nix ../../common/gui/thunar.nix
../../common/style/stylix.nix ../../common/style/stylix.nix
../../common/virtualization/podman.nix ../../common/virtualization/podman.nix