2024-03-28 16:13:46 -04:00
|
|
|
{ pkgs, lib, config, ... }: {
|
|
|
|
|
|
|
|
options = {
|
2024-03-28 16:36:10 -04:00
|
|
|
apps.steam.enable = lib.mkEnableOption "Enables Steam for video games.";
|
2024-03-28 16:13:46 -04:00
|
|
|
};
|
|
|
|
|
2024-03-28 16:36:10 -04:00
|
|
|
config = lib.mkIf config.apps.steam.enable {
|
2024-03-28 16:13:46 -04:00
|
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
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
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|