nyx/modules/nixos/games/default.nix

59 lines
1.2 KiB
Nix
Raw Normal View History

2024-10-23 15:26:54 +00:00
{ config, pkgs, inputs, ... }: {
nixpkgs = {
overlays = [
inputs.nur.overlay
];
config = {
allowUnfree = true;
};
};
2024-08-30 20:18:40 +00:00
2024-08-30 21:52:01 +00:00
environment.systemPackages = with pkgs; [
2024-08-30 20:18:40 +00:00
protonup-qt
prismlauncher
osu-lazer-bin
2024-10-13 17:04:01 +00:00
davinci-resolve
2024-10-23 15:26:54 +00:00
nur.repos.reedrw.jkps
2024-08-30 20:18:40 +00:00
];
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;
2024-11-02 18:13:25 +00:00
alvr = {
enable = true;
package = pkgs.alvr;
openFirewall = true;
};
2024-11-13 19:10:09 +00:00
obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-pipewire-audio-capture
obs-vaapi
];
};
2024-08-30 20:18:40 +00:00
};
2024-10-13 17:04:01 +00:00
hardware = {
amdgpu.opencl.enable = true; # For davinci-resolve
2024-12-01 11:21:54 +00:00
# opentabletdriver.enable = true;
2024-10-13 17:04:01 +00:00
graphics = {
enable = true;
enable32Bit = true;
2024-11-13 19:10:09 +00:00
extraPackages = with pkgs; [
2024-11-16 22:07:01 +00:00
mesa.drivers
2024-11-13 19:10:09 +00:00
egl-wayland
rocmPackages.clr.icd
amdvlk
libva
libva-utils
];
2024-10-13 17:04:01 +00:00
};
2024-08-30 20:18:40 +00:00
};
2024-10-13 17:04:01 +00:00
}