nix-config/modules/apps/gaming/default.nix
2025-09-15 19:19:42 +02:00

24 lines
633 B
Nix

{
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.apps.gaming;
in {
options = {
horseman.apps.gaming = {
enable = mkEnableOption "Games and things for games";
};
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = false; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
};
};
}