xivlauncher: create module

This commit is contained in:
Zynh Ludwig 2024-07-25 00:40:08 -07:00
parent e22748e9f5
commit a4c54ec50d
3 changed files with 23 additions and 2 deletions

View file

@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
let
cfg = config.snowhawk.xivlauncher;
in
{
options.snowhawk.xivlauncher = {
enable = lib.mkEnableOption "xivlauncher home-manager module";
};
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" ];
};
}

View file

@ -62,8 +62,6 @@
spotify
discord
steam-run
xivlauncher
];
};

View file

@ -22,6 +22,7 @@ in
defaultPrograms.enable = true;
playerctl.enable = true;
redshift.enable = true;
xivlauncher.enable = true;
};
snowhawk.ssh = {
enable = true;