config/profiles/desktop/lutris.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

2023-07-05 17:29:31 +02:00
{ config, pkgs, lib, ... }:
2024-10-30 23:18:53 +01:00
lib.mkMerge [
2023-07-05 17:29:31 +02:00
{
# TODO: gamemode?
#services.joycond.enable = true;
2024-02-18 18:50:56 +01:00
environment.systemPackages = [
(pkgs.lutris.override {
2023-07-05 17:29:31 +02:00
extraPkgs = pkgs: [
2024-02-18 18:50:56 +01:00
pkgs.wineWowPackages.staging
2024-02-18 22:14:40 +01:00
pkgs.winetricks
2024-02-18 18:50:56 +01:00
pkgs.pixman
pkgs.libjpeg
2024-12-23 15:58:00 +01:00
(pkgs.zenity or pkgs.gnome.pkgs.adwaita-icon-theme)
2023-07-05 17:29:31 +02:00
];
extraLibraries = pkgs: [
];
})
# ensure icons appear
2024-12-23 15:58:00 +01:00
(pkgs.adwaita-icon-theme or pkgs.gnome.pkgs.adwaita-icon-theme)
2024-02-18 18:50:56 +01:00
pkgs.hicolor-icon-theme #
2023-07-05 17:29:31 +02:00
# Needed for some installers like League of Legends
2024-02-18 18:50:56 +01:00
pkgs.openssl
2024-12-23 15:58:00 +01:00
(pkgs.zenity or pkgs.gnome.pkgs.adwaita-icon-theme)
2023-07-05 17:29:31 +02:00
];
2024-10-30 23:18:53 +01:00
}
(lib.optionalAttrs (lib.versionOlder (lib.versions.majorMinor lib.version) "24.11") {
2024-12-24 00:37:33 +01:00
hardware.opengl.enable = true;
2024-10-30 23:18:53 +01:00
hardware.opengl.driSupport = true;
2024-12-24 00:37:33 +01:00
hardware.opengl.driSupport32Bit = true;
hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
})
(lib.optionalAttrs (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.11") {
hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
2024-10-30 23:18:53 +01:00
})
2023-07-05 17:29:31 +02:00
2024-10-30 23:18:53 +01:00
]