nixos/profiles/gaming/default.nix

34 lines
638 B
Nix
Raw Normal View History

2023-03-19 14:47:31 +01:00
{ config, lib, pkgs, ... }:
let
cfg = config.my.profiles.gaming;
in
{
options.my.profiles.gaming = with lib; {
enable = mkEnableOption "gaming profile";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
blobby
discord
minetest
openttd
prismlauncher # replace minecraft
superTuxKart
steam
SDL
SDL2
wine
winetricks
];
programs.steam.enable = true;
hardware = {
opengl.driSupport32Bit = true;
opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
pulseaudio.support32Bit = true;
};
2023-03-19 14:47:31 +01:00
};
}