Files
nix-config/modules/graphical/games.nix
2024-04-17 16:33:12 +02:00

31 lines
700 B
Nix

{config, lib, pkgs, ...}:
with lib;
let
cfg = config.custom.graphical.games;
in
{
options.custom.graphical.games = {
enable = mkEnableOption "Enables games";
};
config = mkIf cfg.enable {
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
gamescopeSession.enable = true;
};
environment.systemPackages = with pkgs; [
taisei
tetrio
osu-lazer-bin
wineWowPackages.unstableFull
winetricks
lutris
mangohud
prismlauncher
#libs
];
};
}