NixOS-Configs/hosts/workstation/games/default.nix
2024-12-24 19:26:56 -06:00

19 lines
563 B
Nix

{ inputs, outputs, lib, config, pkgs, ... }:
with lib;
let cfg = config.roles.games;
in {
options.roles.games = { enable = mkEnableOption "roles games"; };
config = mkIf cfg.enable {
programs = {
steam = {
enable = true;
gamescopeSession = { enable = true; };
# Open ports in the firewall for Steam Remote Play
# remotePlay.openFirewall = true;
# Open ports in the firewall for Source Dedicated Server
# dedicatedServer.openFirewall = true;
};
gamemode = { enable = true; };
};
};
}