22 lines
449 B
Nix
Raw Normal View History

2022-12-21 14:18:03 -07:00
{ config, pkgs, lib, ... }: {
2022-04-25 21:54:53 -04:00
2022-12-21 14:18:03 -07:00
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) {
2022-04-25 21:54:53 -04:00
hardware.opengl = {
enable = true;
2023-02-05 17:16:20 -05:00
driSupport = true;
2022-04-25 21:54:53 -04:00
driSupport32Bit = true;
};
2023-02-22 23:45:47 -05:00
programs.gamemode.enable = true;
2022-04-25 21:54:53 -04:00
};
}