nix/modules/nixos/steam.nix

45 lines
890 B
Nix
Raw Normal View History

2024-03-29 10:51:39 -05:00
{pkgs, ...}: {
2024-06-18 11:46:03 -05:00
programs.gamescope.enable = true;
programs.steam = {
enable = true;
extest.enable = true;
gamescopeSession.enable = true;
extraPackages = with pkgs; [
gamescope
];
extraCompatPackages = with pkgs; [
proton-ge-bin
];
localNetworkGameTransfers.openFirewall = true;
remotePlay.openFirewall = true;
};
hardware.steam-hardware.enable = true;
2024-03-29 10:51:39 -05:00
services.udev.packages = with pkgs; [steam];
2024-06-13 18:46:46 -05:00
2024-06-18 11:46:03 -05:00
environment.systemPackages = with pkgs; [
dualsensectl
];
# TODO: remote play ports - should be unnecessary due to
# programs.steam.remotePlay.openFirewall = true;
2024-06-13 18:46:46 -05:00
networking.firewall.allowedUDPPortRanges = [
2024-06-18 11:46:03 -05:00
# UDP 27031, 27036
2024-06-13 18:46:46 -05:00
{
from = 27031;
to = 27036;
}
];
networking.firewall.allowedTCPPortRanges = [
2024-06-18 11:46:03 -05:00
# TCP 27036, 27037
2024-06-13 18:46:46 -05:00
{
from = 27036;
to = 27037;
}
];
2024-03-29 10:18:49 -05:00
}