xivlauncher: create module

sh-initrd-on-root
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 spotify
discord discord
steam-run steam-run
xivlauncher
]; ];
}; };

View File

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