mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-14 03:42:56 +00:00
d021baa1bb
required because they don't share all attributes
20 lines
387 B
Nix
20 lines
387 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;
|
|
driSupport32Bit = true;
|
|
};
|
|
};
|
|
}
|