This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / 2configs / steam.nix
1.2 kB 44 lines
1{ pkgs, lib, ... }: 2 3{ 4 programs.steam = { 5 enable = true; 6 remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play 7 dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server 8 package = pkgs.steam.override { 9 extraPkgs = ( 10 pkgs: with pkgs; [ 11 gamemode 12 xorg.libXcursor 13 xorg.libXi 14 xorg.libXinerama 15 xorg.libXScrnSaver 16 libpng 17 libpulseaudio 18 libvorbis 19 stdenv.cc.cc.lib 20 libkrb5 21 keyutils 22 # additional packages... 23 # e.g. some games require python3 24 ] 25 ); 26 # extraLibraries = pkgs: [ pkgs.gperftools ]; 27 # - Automatically enable gamemode whenever Steam is running 28 # -- NOTE: Assumes that a working system install of gamemode already exists! 29 extraProfile = 30 let 31 gmLib = "${lib.getLib (pkgs.gamemode)}/lib"; 32 in 33 '' 34 export LD_LIBRARY_PATH="${gmLib}:$LD_LIBRARY_PATH" 35 ''; 36 }; 37 }; 38 39 environment.systemPackages = with pkgs; [ 40 mangohud 41 ]; 42 43 programs.gamemode.enable = true; 44}