nix-dotfiles/modules/steam.nix

48 lines
933 B
Nix

{
pkgs,
lib,
config,
...
}: {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
# apparently enabling this makes big picture boot up, does not work on nvidia however
# gamescopeSession.enable = true;
extraCompatPackages = [
pkgs.proton-ge-bin
];
};
hardware.graphics = {
enable = true;
enable32Bit = true;
};
environment.systemPackages = with pkgs; [
lutris
wineWowPackages.stable
winetricks
protontricks
gamemode
mangohud
vulkan-tools
vulkan-loader
vulkan-headers
vulkan-validation-layers
libstrangle
piper
portaudio
alsa-lib
ffmpeg
stdenv.cc.cc.lib
];
environment.sessionVariables = {
LD_LIBRARY_PATH = lib.makeLibraryPath [
pkgs.mangohud
pkgs.portaudio
pkgs.alsa-lib
pkgs.ffmpeg
pkgs.stdenv.cc.cc.lib
];
};
}