dotfiles/modules/nixos/gaming/default.nix
2023-02-22 23:45:47 -05:00

22 lines
449 B
Nix

{ config, pkgs, lib, ... }: {
imports = [
./leagueoflegends.nix
./legendary.nix
./lutris.nix
./minecraft-server.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;
};
}