nixcfg/nixosModules/programs/steamGames/default.nix

18 lines
499 B
Nix
Raw Normal View History

{ pkgs, lib, config, ... }: {
options = {
programs.steamGames.enable = lib.mkEnableOption "Enables Steam for video games.";
};
config = lib.mkIf config.programs.steamGames.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
};
};
}