mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-24 02:45:37 +00:00
25 lines
509 B
Nix
25 lines
509 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
imports = [
|
|
./chiaki.nix
|
|
./dwarf-fortress.nix
|
|
./leagueoflegends.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;
|
|
};
|
|
}
|