dotfiles/modules/nixos/gaming/default.nix

30 lines
484 B
Nix
Raw Permalink Normal View History

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