nyx/modules/nixos/games/default.nix

59 lines
1.2 KiB
Nix
Raw Normal View History

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