NixOS-Configs/hosts/workstation/games/default.nix
2026-05-16 22:36:47 -05:00

19 lines
565 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; };
};
};
}