xivlauncher: create module
parent
e22748e9f5
commit
a4c54ec50d
|
@ -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" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -62,8 +62,6 @@
|
||||||
spotify
|
spotify
|
||||||
discord
|
discord
|
||||||
steam-run
|
steam-run
|
||||||
|
|
||||||
xivlauncher
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue