nixos/home/modules/xivlauncher.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2024-08-11 12:10:02 +00:00
{ config, lib, pkgs, inputs, ... }:
2024-07-25 07:40:08 +00:00
let
cfg = config.snowhawk.xivlauncher;
in
{
2024-08-11 12:10:02 +00:00
imports = [
inputs.borderless-browser.homeModules
];
2024-07-25 07:40:08 +00:00
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-08-11 12:10:02 +00:00
iinact.enable = lib.mkEnableOption "iinact borderless-browser";
2024-07-25 07:40:08 +00:00
};
config =
let launchffxiv = "${pkgs.xivlauncher}/bin/XIVLauncher.Core";
in lib.mkIf cfg.enable {
2024-08-11 12:10:02 +00:00
borderless-browser = {
chromium = pkgs.brave;
apps = {
iinact = {
desktopName = "IINACT";
url = "http://proxy.iinact.com/overlay/skyline/?OVERLAY_WS=ws://127.0.0.1:10501/ws";
};
};
};
2024-07-25 07:40:08 +00:00
home.packages = with pkgs; [
xivlauncher
2024-08-11 12:10:02 +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-07-25 07:40:08 +00:00
] ++ map (name: (writeShellScriptBin name launchffxiv)) [ "ff14" "xivlauncher" ];
};
}