From 6619aa33aebfaa27969118b0cd5826c5a2cb2abf Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Sat, 22 Feb 2025 21:09:08 +0100 Subject: [PATCH] cleaned up unneeded comments --- modules/software/game.nix | 55 ++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 32 deletions(-) diff --git a/modules/software/game.nix b/modules/software/game.nix index eebdd19..00944e9 100644 --- a/modules/software/game.nix +++ b/modules/software/game.nix @@ -1,37 +1,28 @@ -{pkgs, ...}: { - #environment.systemPackages = with pkgs; [ ]; - # hardware.steam-hardware.enable = true; # Note that this is already enabled with programs.steam.enable = true; +{ pkgs, ... }: { programs.steam = { 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 + + # Open ports in the firewall for Steam Remote Play + remotePlay.openFirewall = true; + + # Open ports in the firewall for Source Dedicated Server + dedicatedServer.openFirewall = true; + + # Open ports in the firewall for Steam Local Network Game Transfers + localNetworkGameTransfers.openFirewall = true; + + # enables a extra session for the login screen (get steam deck behavior) + gamescopeSession.enable = true; + + # make proton-ge alway available + extraCompatPackages = with pkgs; [ proton-ge-bin ]; }; - programs.steam.gamescopeSession.enable = true; - #### FHS environment only - # This will only make partial installation - provide the script, which creates the typical environment expected by proprietary games and software on regular Linux, allowing to run such software without patching. Useful if you plan to run games downloaded from the internet. - # Note that this is not necessary for clients installed from Nixpkgs (like Minigalaxy or Itch), which already use the FHS environment. - # There are two options to install the FHS environment. The first is to install steam-run. - #Example snippet of configuration.nix: + # steam-run: Run commands in the same FHS environment that is used for Steam + environment.systemPackages = with pkgs; [ steam-run ]; - # environment.systemPackages = with pkgs; [ - # steam-run - # ]; - - # Another option, in case you need more flexibility, is to directly reference the part of steam metapackage. - - # Example snippet of configuration.nix: - - # environment.systemPackages = with pkgs; [ - # (steam.override { /* Your overrides here */ }).run - # ]; - # Install the game by setting the executable attribute on the installer and then running it via steam-run ./your_installer.sh. After installation, edit the "~/.local/share/applications/your_game.desktop" and replace the exec line from Exec="/home/user/game/start.sh" "" with Exec="steam-run" "/home/user/game/start.sh". - - environment.systemPackages = with pkgs; [steam-run]; - - programs.steam.extraCompatPackages = with pkgs; [proton-ge-bin]; -} + # Note that this is already enabled with programs.steam.enable = true; + # but it might be usefull on systems without steam, + # while still using steam hardware + #hardware.steam-hardware.enable = true; + }