alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
steam: run with more overrides
author
lassulus
date
2 years ago
(Sep 27, 2024, 2:42 PM CEST)
commit
4476591f
4476591f38bd31a400659a393bd360bce41a2130
parent
5613f019
5613f0199b54263a05f254b4f6a2c601b68a0677
+26
-25
1 changed file
Expand all
Collapse all
Unified
Split
2configs
steam.nix
+26
-25
2configs/steam.nix
View file
Reviewed
···
1
1
-
{ config, pkgs, ... }:
1
1
+
{ pkgs, lib, ... }:
2
2
3
3
{
4
4
-
#
5
5
-
# Steam stuff
6
6
-
# source: https://nixos.org/wiki/Talk:Steam
7
7
-
#
8
8
-
##TODO: make steam module
9
9
-
# hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
10
10
-
11
11
-
# users.users.mainUser.packages = [ (pkgs.steam.override {
12
12
-
# extraPkgs = p: with p; [
13
13
-
# gnutls # needed for Halo MCC
14
14
-
# ];
15
15
-
# }) ];
16
16
-
environment.systemPackages = [ pkgs.steam ];
17
17
-
hardware.opengl.driSupport32Bit = true;
18
18
-
19
19
-
#ports for inhome streaming
20
20
-
krebs.iptables = {
21
21
-
tables = {
22
22
-
filter.INPUT.rules = [
23
23
-
{ predicate = "-p tcp --dport 27031"; target = "ACCEPT"; }
24
24
-
{ predicate = "-p tcp --dport 27036"; target = "ACCEPT"; }
25
25
-
{ predicate = "-p udp --dport 27031"; target = "ACCEPT"; }
26
26
-
{ predicate = "-p udp --dport 27036"; target = "ACCEPT"; }
27
27
-
];
4
4
+
programs.steam = {
5
5
+
enable = true;
6
6
+
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
7
7
+
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
8
8
+
package = pkgs.steam.override {
9
9
+
extraPkgs = (pkgs: with pkgs; [
10
10
+
gamemode
11
11
+
xorg.libXcursor xorg.libXi xorg.libXinerama xorg.libXScrnSaver
12
12
+
libpng libpulseaudio libvorbis stdenv.cc.cc.lib
13
13
+
libkrb5 keyutils
14
14
+
# additional packages...
15
15
+
# e.g. some games require python3
16
16
+
]);
17
17
+
# extraLibraries = pkgs: [ pkgs.gperftools ];
18
18
+
# - Automatically enable gamemode whenever Steam is running
19
19
+
# -- NOTE: Assumes that a working system install of gamemode already exists!
20
20
+
extraProfile = let gmLib = "${lib.getLib(pkgs.gamemode)}/lib"; in ''
21
21
+
export LD_LIBRARY_PATH="${gmLib}:$LD_LIBRARY_PATH"
22
22
+
'';
28
23
};
29
24
};
25
25
+
26
26
+
environment.systemPackages = with pkgs; [
27
27
+
mangohud
28
28
+
];
29
29
+
30
30
+
programs.gamemode.enable = true;
30
31
}