25 lines
691 B
Nix
25 lines
691 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
|
|
|
|
(writeShellScriptBin "iinact" ''
|
|
${pkgs.brave}/bin/brave --new-window "http://proxy.iinact.com/overlay/skyline/?OVERLAY_WS=ws://127.0.0.1:10501/ws"
|
|
'')
|
|
] ++ map (name: (writeShellScriptBin name launchffxiv)) [ "ff14" "xivlauncher" ];
|
|
};
|
|
}
|