Nix-Deploy/modules/desktop/core/gaming.nix
2025-07-08 00:45:36 -04:00

39 lines
No EOL
745 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
cfg = config.core.gaming;
in {
options.core.gaming = {
enable = mkEnableOption "Config and Utils for gaming";
};
config = mkIf cfg.enable {
environment = {
systemPackages = with pkgs; [
scanmem
protonup-qt
wine
winetricks
equibop
];
};
programs = {
steam = {
enable=true;
remotePlay.openFirewall = lib.mkDefault true;
localNetworkGameTransfers.openFirewall = lib.mkDefault true;
extest.enable = lib.mkDefault true;
protontricks.enable = lib.mkDefault true;
};
gamemode.enable = true;
};
};
}