dotfiles/nixos/gaming/default.nix

20 lines
387 B
Nix
Raw Normal View History

2022-12-21 21:18:03 +00:00
{ config, pkgs, lib, ... }: {
2022-04-26 01:54:53 +00:00
2022-12-21 21:18:03 +00: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-26 01:54:53 +00:00
hardware.opengl = {
enable = true;
driSupport32Bit = true;
};
};
}