nixcfg/nixosModules/apps/steam/default.nix

22 lines
510 B
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
pkgs,
lib,
config,
...
}: {
options = {
alyraffauf.apps.steam.enable = lib.mkEnableOption "Enables Steam for video games.";
};
config = lib.mkIf config.alyraffauf.apps.steam.enable {
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
};
};
}