cleaned up unneeded comments
This commit is contained in:
parent
03899af020
commit
e18bac76dc
1 changed files with 23 additions and 32 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue