explicitly install dxvk

This commit is contained in:
Vinzenz Schroeter 2023-09-23 11:53:52 +02:00
parent 04c82ccd99
commit 82ae5a89fc
2 changed files with 12 additions and 5 deletions

View file

@ -6,17 +6,22 @@
}: let
isEnabled = config.my.desktop.enableGaming;
in {
imports = [];
options.my.desktop.enableGaming = lib.mkEnableOption "gaming with wine";
config = lib.mkIf isEnabled {
hardware.opengl.driSupport32Bit = true;
hardware.opengl = {
driSupport32Bit = true;
extraPackages = with pkgs; [mangohud];
extraPackages32 = with pkgs; [mangohud];
};
environment.systemPackages = with pkgs; [
wineWowPackages.stagingFull
wineWowPackages.fonts
winetricks
dxvk
mangohud
vulkan-tools
(lutris.override {
extraPkgs = pkgs: [
@ -29,10 +34,11 @@ in {
];
programs = {
xwayland.enable = true;
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
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
};
};

View file

@ -11,6 +11,7 @@ in {
config = lib.mkIf isEnabled {
environment.systemPackages = with pkgs; [
radeontop
amdvlk
];
};
}