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

View file

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