dotfiles/modules/nixos/gaming/default.nix
2024-04-20 09:42:06 -04:00

30 lines
491 B
Nix

{
config,
pkgs,
lib,
...
}:
{
imports = [
./chiaki.nix
./dwarf-fortress.nix
./legendary.nix
./lutris.nix
./minecraft-server.nix
./ryujinx.nix
./steam.nix
];
options.gaming.enable = lib.mkEnableOption "Enable gaming features.";
config = lib.mkIf (config.gaming.enable && pkgs.stdenv.isLinux) {
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
programs.gamemode.enable = true;
};
}