nixos/hosts/common/optional/gaming.nix

60 lines
981 B
Nix
Raw Normal View History

2024-06-15 01:31:56 +01:00
{ pkgs, lib, ... }:
{
# Gaming
# xone failing to build - https://github.com/NixOS/nixpkgs/pull/347471
# hardware.xone.enable = true;
2024-06-15 01:31:56 +01:00
environment.systemPackages = with pkgs; [
#Xbox controller
# linuxKernel.packages.linux_zen.xone
2024-06-15 01:31:56 +01:00
# Steam
mangohud
gamemode
# WINE
wine
winetricks
protontricks
vulkan-tools
# Lutris
lutris
# Extra dependencies
gnutls
openldap
libgpgerror
freetype
sqlite
libxml2
xml2
SDL2
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# Add additional package names here
"steam"
"steam-original"
"steam-run"
];
programs.steam = {
enable = true;
};
programs.gamemode.enable = true;
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs = pkgs: with pkgs; [
pango
libthai
harfbuzz
gamemode
];
};
};
}