nyx/modules/nixos/games/default.nix

62 lines
1.3 KiB
Nix

{ config, pkgs, inputs, ... }: {
nixpkgs = {
overlays = [ inputs.nur.overlays.default ];
config = { allowUnfree = true; };
};
environment.systemPackages = with pkgs; [
protonup-qt
prismlauncher
osu-lazer-bin
# davinci-resolve
nur.repos.reedrw.jkps
];
programs = {
steam = {
enable = true;
remotePlay.openFirewall =
true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall =
true; # Open ports in the firewall for Source Dedicated Server
};
gamemode.enable = true;
alvr = {
enable = true;
package = pkgs.alvr;
openFirewall = true;
};
obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-pipewire-audio-capture
obs-vaapi
];
};
};
hardware = {
amdgpu.opencl.enable = true; # For davinci-resolve
opentabletdriver = {
enable = true; # For osu!
daemon.enable = true;
blacklistedKernelModules = [
"wacom"
];
};
graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
mesa.drivers
egl-wayland
rocmPackages.clr.icd
amdvlk
libva
libva-utils
];
};
};
}