From 54d27c0cf91abacadf0bc666bada3df5d7603792 Mon Sep 17 00:00:00 2001 From: jay Date: Sun, 29 Jun 2025 07:21:23 -0400 Subject: [PATCH] Added Steam. --- nodes/hosts/common/configuration.nix | 1 + nodes/hosts/common/programs/steam.nix | 29 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 nodes/hosts/common/programs/steam.nix diff --git a/nodes/hosts/common/configuration.nix b/nodes/hosts/common/configuration.nix index 6d0306e..227a8d3 100644 --- a/nodes/hosts/common/configuration.nix +++ b/nodes/hosts/common/configuration.nix @@ -5,6 +5,7 @@ ./programs/general.nix ./programs/git.nix ./programs/kde.nix + ./programs/steam.nix ./scripts/upgrade-diff.nix ./services/desktopmanager.nix ./services/displaymanager.nix diff --git a/nodes/hosts/common/programs/steam.nix b/nodes/hosts/common/programs/steam.nix new file mode 100644 index 0000000..43702fc --- /dev/null +++ b/nodes/hosts/common/programs/steam.nix @@ -0,0 +1,29 @@ +{ pkgs, ... }: { + # Install steam. + programs = { + gamemode.enable = true; + gamescope.enable = true; + + steam = { + enable = true; + gamescopeSession.enable = true; + remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play + dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server + localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers + package = pkgs.steam.override { # Fix Overwatch and other games showing wrong timezone in-game. + extraProfile = '' + unset TZ + ''; + }; + + protontricks = { + enable = true; + }; + }; + }; + + environment.systemPackages = [ + pkgs.mangohud + ]; +} +