32 lines
944 B
Nix
32 lines
944 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.snowhawk.xivlauncher;
|
|
in
|
|
{
|
|
options.snowhawk.xivlauncher = {
|
|
enable = lib.mkEnableOption "xivlauncher home-manager module";
|
|
|
|
textools.enable = lib.mkEnableOption "TexTools wine application";
|
|
};
|
|
|
|
config =
|
|
let launchffxiv = "${pkgs.xivlauncher}/bin/XIVLauncher.Core";
|
|
in lib.mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
xivlauncher
|
|
fflogs
|
|
|
|
(writeShellScriptBin "iinact" ''
|
|
${pkgs.brave}/bin/brave --new-window "http://proxy.iinact.com/overlay/skyline/?OVERLAY_WS=ws://127.0.0.1:10501/ws"
|
|
'')
|
|
|
|
# (lib.mkIf cfg.textools.enable pkgs.wrapWine {
|
|
# # https://gist.github.com/helpful-fox-senko-san/6238143f5c7352ab44e62c5a0f7f7642
|
|
# name = "textools";
|
|
# tricks = [ "dotnet48" "dxvk" ];
|
|
# })
|
|
] ++ map (name: (writeShellScriptBin name launchffxiv)) [ "ff14" "xivlauncher" ];
|
|
};
|
|
}
|