nixos/home/modules/xivlauncher.nix

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