nixos/home/modules/xivlauncher.nix

32 lines
944 B
Nix
Raw Permalink Normal View History

{ config, lib, pkgs, ... }:
2024-07-25 07:40:08 +00:00
let
cfg = config.snowhawk.xivlauncher;
in
{
options.snowhawk.xivlauncher = {
enable = lib.mkEnableOption "xivlauncher home-manager module";
2024-08-11 12:12:25 +00:00
textools.enable = lib.mkEnableOption "TexTools wine application";
2024-07-25 07:40:08 +00:00
};
config =
let launchffxiv = "${pkgs.xivlauncher}/bin/XIVLauncher.Core";
in lib.mkIf cfg.enable {
home.packages = with pkgs; [
xivlauncher
2024-08-25 21:00:14 +00:00
fflogs
2024-07-25 07:40:08 +00:00
(writeShellScriptBin "iinact" ''
${pkgs.brave}/bin/brave --new-window "http://proxy.iinact.com/overlay/skyline/?OVERLAY_WS=ws://127.0.0.1:10501/ws"
'')
2024-08-17 06:47:38 +00:00
# (lib.mkIf cfg.textools.enable pkgs.wrapWine {
# # https://gist.github.com/helpful-fox-senko-san/6238143f5c7352ab44e62c5a0f7f7642
# name = "textools";
# tricks = [ "dotnet48" "dxvk" ];
# })
2024-07-25 07:40:08 +00:00
] ++ map (name: (writeShellScriptBin name launchffxiv)) [ "ff14" "xivlauncher" ];
};
}