# World of Warcraft Classic beta ("Forever"), run outside Steam via Proton in the existing Steam prefix. { inputs, ... }: { flake-file.inputs.nix-warcraft = { url = "github:raccube/nix-warcraft/amirdrassil"; inputs.nixpkgs.follows = "nixpkgs"; }; den.aspects.software.gaming.homeManager = { config, lib, pkgs, osConfig ? { }, ... }: let prefix = ".local/share/Steam/steamapps/compatdata/2981697491"; game = "${config.home.homeDirectory}/${prefix}/pfx/drive_c/Program Files (x86)/World of Warcraft/_classic_beta_"; addons = import ./_addons.nix { inherit pkgs lib; }; # Not fetchable from a public source (CurseForge-only): copy them here by hand. local = [ "Auctionator" "Baganator" "Syndicator" "BetterFishing" "SpeedyAutoLoot" "ForeverStatSearch" "Leatrix_Maps" "Leatrix_Plus" "RareScanner" "TomTom" ]; in { imports = [ inputs.nix-warcraft.homeManagerModules.default ]; programs.wow = { enable = true; protonPackage = inputs.nix-warcraft.inputs.proton-ge-nix.packages.${pkgs.stdenv.hostPlatform.system}.v11.steamcompattool; wayland = false; # same as under Steam (Xwayland) prefixDir = prefix; # Same as the Steam shortcut: Battle.net (installed in the 3358134755 prefix) run in this prefix; it handles login. battleNetExe = "../3358134755/pfx/drive_c/Program Files (x86)/Battle.net/Battle.net.exe"; uiLayoutName = osConfig.networking.hostName or "16:9"; hideDesktopEntries = true; # its entry needs a flavourExeMap key classic-beta lacks versions.classic-beta = { displayName = "World of Warcraft Classic Beta"; executable = "pfx/drive_c/Program Files (x86)/World of Warcraft/_classic_beta_/WowB.exe"; addonDir = "${game}/Interface/AddOns"; wtfDir = "${game}/WTF"; addonPackages = lib.attrValues addons; developmentAddons = lib.genAttrs local (d: "${config.home.homeDirectory}/.local/share/wow-addons/${d}"); }; }; }; }