nixos-config/modules/nixos/programs/gaming.nix
wo2wz 35e5edc42d gaming: add alsa-oss back
seems like its still needed for some oops
2025-11-14 21:26:36 -05:00

28 lines
No EOL
785 B
Nix
Executable file

{ inputs, config, pkgs, ... }:
let
nixpkgs-unstable = import inputs.nixpkgs-unstable {
system = "${pkgs.system}";
config.allowUnfree = true;
};
in {
programs = {
gamemode.enable = true; # performance tuning for games
steam = {
enable = true;
extraCompatPackages = [ pkgs.proton-ge-bin ];
};
};
environment.systemPackages = with pkgs; [
gamescope # screen resolution controller for games that have bugs when changing resolution
(prismlauncher.override {
# Change Java runtimes available to Prism Launcher
jdks = [
jdk8
nixpkgs-unstable.graalvmPackages.graalvm-oracle_17
inputs.nixpkgs-pin.legacyPackages.${pkgs.system}.graalvm-ce
];
})
alsa-oss # fix audio bug on some instances
];
}