xivlauncher: iinact borderless

sh-initrd-on-root
Zynh Ludwig 2024-08-11 05:10:02 -07:00
parent 6af247c6c6
commit 8039eacfb9
3 changed files with 80 additions and 4 deletions

View File

@ -20,6 +20,27 @@
"url": "https://git.zynh.me/Zynh0722/backgrounds" "url": "https://git.zynh.me/Zynh0722/backgrounds"
} }
}, },
"borderless-browser": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1697838514,
"narHash": "sha256-PWZCkx2+/86e1Jc6Myk/U3UbHZULypo+WPqJHmPPbH8=",
"owner": "lucasew",
"repo": "borderless-browser.nix",
"rev": "bcca59662b8d0cbbc6dd93321d8d65e3eb547d47",
"type": "github"
},
"original": {
"owner": "lucasew",
"repo": "borderless-browser.nix",
"type": "github"
}
},
"dunst-theme": { "dunst-theme": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -126,6 +147,24 @@
"type": "indirect" "type": "indirect"
} }
}, },
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1694529238,
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"git-hooks": { "git-hooks": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat_2",
@ -308,6 +347,7 @@
"root": { "root": {
"inputs": { "inputs": {
"backgrounds": "backgrounds", "backgrounds": "backgrounds",
"borderless-browser": "borderless-browser",
"dunst-theme": "dunst-theme", "dunst-theme": "dunst-theme",
"fish_theme": "fish_theme", "fish_theme": "fish_theme",
"home-manager": "home-manager", "home-manager": "home-manager",
@ -337,6 +377,21 @@
"repo": "sops-nix", "repo": "sops-nix",
"type": "github" "type": "github"
} }
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

@ -35,6 +35,11 @@
}; };
repo-clone.url = "git+https://git.zynh.me/Zynh0722/repo-clone"; repo-clone.url = "git+https://git.zynh.me/Zynh0722/repo-clone";
borderless-browser = {
url = "github:lucasew/borderless-browser.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =

View File

@ -1,24 +1,40 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, inputs, ... }:
let let
cfg = config.snowhawk.xivlauncher; cfg = config.snowhawk.xivlauncher;
in in
{ {
imports = [
inputs.borderless-browser.homeModules
];
options.snowhawk.xivlauncher = { options.snowhawk.xivlauncher = {
enable = lib.mkEnableOption "xivlauncher home-manager module"; enable = lib.mkEnableOption "xivlauncher home-manager module";
textools.enable = lib.mkEnableOption "TexTools wine application"; textools.enable = lib.mkEnableOption "TexTools wine application";
iinact.enable = lib.mkEnableOption "iinact borderless-browser";
}; };
config = config =
let launchffxiv = "${pkgs.xivlauncher}/bin/XIVLauncher.Core"; let launchffxiv = "${pkgs.xivlauncher}/bin/XIVLauncher.Core";
in lib.mkIf cfg.enable { in lib.mkIf cfg.enable {
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";
};
};
};
home.packages = with pkgs; [ home.packages = with pkgs; [
xivlauncher xivlauncher
(writeShellScriptBin "iinact" '' # (writeShellScriptBin "iinact" ''
${pkgs.brave}/bin/brave --new-window "http://proxy.iinact.com/overlay/skyline/?OVERLAY_WS=ws://127.0.0.1:10501/ws" # ${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" ]; ] ++ map (name: (writeShellScriptBin name launchffxiv)) [ "ff14" "xivlauncher" ];
}; };
} }