This repository has no description
1.3 kB
47 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 '';
38 };
39 };
40
41 environment.systemPackages = with pkgs; [
42 mangohud
43 gamescope
44 ];
45
46 programs.gamemode.enable = true;
47}