nixos/profiles/gaming/default.nix
Felix Buehler e60d5690d5
Some checks failed
/ Build Nix targets (push) Has been cancelled
profile/gaming: fix steam with gamemode
2025-11-15 20:04:48 +01:00

49 lines
923 B
Nix

{
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
gamemode
minetest
moonlight-qt # steam-link stream
openttd
prismlauncher # replace minecraft
superTuxKart
steam
SDL
SDL2
wine
winetricks
];
programs.steam = {
enable = true;
# fix gamemode: https://github.com/NixOS/nixpkgs/issues/389142
package = pkgs.steam.override {
extraPkgs =
pkgs: with pkgs; [
gamemode
];
};
};
hardware = {
graphics.enable32Bit = true;
graphics.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
};
services.pulseaudio.support32Bit = true;
};
}