This repository has no description
0

Configure Feed

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

steam: run with more overrides

+26 -25
+26 -25
2configs/steam.nix
··· 1 - { config, pkgs, ... }: 1 + { pkgs, lib, ... }: 2 2 3 3 { 4 - # 5 - # Steam stuff 6 - # source: https://nixos.org/wiki/Talk:Steam 7 - # 8 - ##TODO: make steam module 9 - # hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ]; 10 - 11 - # users.users.mainUser.packages = [ (pkgs.steam.override { 12 - # extraPkgs = p: with p; [ 13 - # gnutls # needed for Halo MCC 14 - # ]; 15 - # }) ]; 16 - environment.systemPackages = [ pkgs.steam ]; 17 - hardware.opengl.driSupport32Bit = true; 18 - 19 - #ports for inhome streaming 20 - krebs.iptables = { 21 - tables = { 22 - filter.INPUT.rules = [ 23 - { predicate = "-p tcp --dport 27031"; target = "ACCEPT"; } 24 - { predicate = "-p tcp --dport 27036"; target = "ACCEPT"; } 25 - { predicate = "-p udp --dport 27031"; target = "ACCEPT"; } 26 - { predicate = "-p udp --dport 27036"; target = "ACCEPT"; } 27 - ]; 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 = (pkgs: with pkgs; [ 10 + gamemode 11 + xorg.libXcursor xorg.libXi xorg.libXinerama xorg.libXScrnSaver 12 + libpng libpulseaudio libvorbis stdenv.cc.cc.lib 13 + libkrb5 keyutils 14 + # additional packages... 15 + # e.g. some games require python3 16 + ]); 17 + # extraLibraries = pkgs: [ pkgs.gperftools ]; 18 + # - Automatically enable gamemode whenever Steam is running 19 + # -- NOTE: Assumes that a working system install of gamemode already exists! 20 + extraProfile = let gmLib = "${lib.getLib(pkgs.gamemode)}/lib"; in '' 21 + export LD_LIBRARY_PATH="${gmLib}:$LD_LIBRARY_PATH" 22 + ''; 28 23 }; 29 24 }; 25 + 26 + environment.systemPackages = with pkgs; [ 27 + mangohud 28 + ]; 29 + 30 + programs.gamemode.enable = true; 30 31 }