24 lines
436 B
Nix
24 lines
436 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.modules.battlenet;
|
|
in
|
|
{
|
|
config = mkIf cfg.enable {
|
|
# Battle.net games rely on 32-bit graphics libraries; Steam would
|
|
# normally force this on, but enable it independently as a fallback.
|
|
hardware.graphics.enable32Bit = mkDefault true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
lutris
|
|
wineWow64Packages.staging
|
|
winetricks
|
|
];
|
|
};
|
|
}
|