2024-02-06 21:19:34 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2024-12-07 17:29:59 +01:00
|
|
|
# Alternative: Install Steam as Flatpak
|
|
|
|
#
|
2024-02-06 22:00:01 +01:00
|
|
|
# https://wiki.archlinux.org/title/steam#See_also
|
2024-02-06 21:19:34 +01:00
|
|
|
# flatpak install com.valvesoftware.Steam
|
2024-12-07 17:29:59 +01:00
|
|
|
#
|
2024-02-06 21:19:34 +01:00
|
|
|
# Launching Steam with Flatpak might warn you about installing the steam-devices package to add support for some gamepads.
|
|
|
|
# https://wiki.archlinux.org/title/steam#Flatpak
|
|
|
|
# https://github.com/ValveSoftware/steam-devices
|
|
|
|
# These udev rules should be enabled by the following setting.
|
|
|
|
# https://www.reddit.com/r/NixOS/comments/10px9ty/comment/j6moarv/
|
|
|
|
#hardware.steam-hardware.enable = true;
|
2024-12-07 17:29:59 +01:00
|
|
|
|
|
|
|
# https://nixos.wiki/wiki/Steam#Install
|
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# Open ports in the firewall for Steam Remote Play
|
|
|
|
#remotePlay.openFirewall = true;
|
|
|
|
|
|
|
|
# Open ports in the firewall for Source Dedicated Server
|
|
|
|
# https://developer.valvesoftware.com/wiki/Source_Dedicated_Server
|
|
|
|
# Tool that runs the server component of a Source game (CS:GO, etc) without the client component
|
|
|
|
#dedicatedServer.openFirewall = true;
|
|
|
|
|
|
|
|
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
|
|
|
|
};
|
|
|
|
allowUnfree = [
|
|
|
|
"steam"
|
|
|
|
"steam-original"
|
|
|
|
"steam-unwrapped"
|
|
|
|
"steam-run"
|
|
|
|
];
|
2024-02-06 21:19:34 +01:00
|
|
|
}
|