mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 01:42:55 +00:00
29 lines
464 B
Nix
29 lines
464 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
|
|
imports = [
|
|
./chiaki.nix
|
|
./dwarf-fortress.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.graphics = {
|
|
enable = true;
|
|
enable32Bit = true;
|
|
};
|
|
programs.gamemode.enable = true;
|
|
};
|
|
}
|