forked from
lass.pds.lassul.us/superconfig
This repository has no description
1.4 kB
49 lines
1{ pkgs, lib, ... }:
2
3{
4 programs.steam = {
5 enable = true;
6 gamescopeSession.enable = true;
7 remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
8 dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
9 package = pkgs.steam.override {
10 extraPkgs = (
11 pkgs: with pkgs; [
12 gamemode
13 xorg.libXcursor
14 xorg.libXi
15 xorg.libXinerama
16 xorg.libXScrnSaver
17 libpng
18 libpulseaudio
19 libvorbis
20 stdenv.cc.cc.lib
21 libkrb5
22 keyutils
23 # additional packages...
24 # e.g. some games require python3
25 ]
26 );
27 # extraLibraries = pkgs: [ pkgs.gperftools ];
28 # - Automatically enable gamemode whenever Steam is running
29 # -- NOTE: Assumes that a working system install of gamemode already exists!
30 extraProfile =
31 let
32 gmLib = "${lib.getLib (pkgs.gamemode)}/lib";
33 in
34 ''
35 export LD_LIBRARY_PATH="${gmLib}:$LD_LIBRARY_PATH"
36 export PATH="${pkgs.gamescope}/bin:$PATH"
37 # xpadneo owns the hidraw node; force SDL to use evdev for Xbox pads
38 export SDL_JOYSTICK_HIDAPI_XBOX=0
39 '';
40 };
41 };
42
43 environment.systemPackages = with pkgs; [
44 mangohud
45 gamescope
46 ];
47
48 programs.gamemode.enable = true;
49}