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 + ]; +} +