2024-04-20 09:42:06 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2022-04-25 21:54:53 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
imports = [
|
2023-04-15 10:11:44 -04:00
|
|
|
./chiaki.nix
|
2023-04-19 19:50:10 -04:00
|
|
|
./dwarf-fortress.nix
|
2022-12-21 14:18:03 -07:00
|
|
|
./legendary.nix
|
|
|
|
./lutris.nix
|
|
|
|
./minecraft-server.nix
|
2024-08-07 22:58:58 -04:00
|
|
|
./moonlight.nix
|
2023-06-01 22:39:05 -04:00
|
|
|
./ryujinx.nix
|
2022-12-21 14:18:03 -07:00
|
|
|
./steam.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
options.gaming.enable = lib.mkEnableOption "Enable gaming features.";
|
|
|
|
|
|
|
|
config = lib.mkIf (config.gaming.enable && pkgs.stdenv.isLinux) {
|
2024-06-23 08:54:51 -04:00
|
|
|
hardware.graphics = {
|
2022-04-25 21:54:53 -04:00
|
|
|
enable = true;
|
2024-06-23 08:54:51 -04:00
|
|
|
enable32Bit = true;
|
2022-04-25 21:54:53 -04:00
|
|
|
};
|
2023-02-22 23:45:47 -05:00
|
|
|
programs.gamemode.enable = true;
|
2022-04-25 21:54:53 -04:00
|
|
|
};
|
|
|
|
}
|