AAGL #4
@@ -112,18 +112,33 @@ in {
|
|||||||
enable = lib.mkEnableOption "Final Fantasy XIV and it's accompanied (unofficial) launcher";
|
enable = lib.mkEnableOption "Final Fantasy XIV and it's accompanied (unofficial) launcher";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# TODO: when aagl gets it's unified launcher all finished/in a stable state, transition to that launcher
|
||||||
aagl = {
|
aagl = {
|
||||||
anime-game-launcher = {
|
anime-game-launcher = {
|
||||||
enable = lib.mkEnableOption "AAGL (legacy)";
|
enable = lib.mkEnableOption "Genshin Impact launcher (legacy)";
|
||||||
};
|
};
|
||||||
|
|
||||||
honkers-railway-launcher = {
|
honkers-railway-launcher = {
|
||||||
enable = lib.mkEnableOption "Honkai: Star Rail launcher";
|
enable = lib.mkEnableOption "Honkai: Star Rail launcher";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
honkers-launcher = {
|
||||||
|
enable = lib.mkEnableOption "Honkai: Impact 3rd launcher";
|
||||||
|
};
|
||||||
|
|
||||||
|
wavey-launcher = {
|
||||||
|
enable = lib.mkEnableOption "Wuthering Waves launcher";
|
||||||
|
};
|
||||||
|
|
||||||
|
sleepy-launcher = {
|
||||||
|
enable = lib.mkEnableOption "Zenless Zone Zero (ZZZ) launcher";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = let
|
||||||
|
agl = cfg.aagl;
|
||||||
|
in {
|
||||||
programs.steam = lib.mkIf cfg.steam.enable {
|
programs.steam = lib.mkIf cfg.steam.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = cfg.steam.firewall.remotePlay;
|
remotePlay.openFirewall = cfg.steam.firewall.remotePlay;
|
||||||
@@ -152,11 +167,23 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.anime-game-launcher = lib.mkIf cfg.aagl.anime-game-launcher.enable {
|
programs.anime-game-launcher = lib.mkIf agl.anime-game-launcher.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.honkers-railway-launcher = lib.mkIf cfg.aagl.honkers-railway-launcher.enable {
|
programs.honkers-railway-launcher = lib.mkIf agl.honkers-railway-launcher.enable {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.honkers-launcher = lib.mkIf agl.honkers-launcher.enable {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.wavey-launcher = lib.mkIf agl.wavey-launcher.enable {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.sleepy-launcher = lib.mkIf agl.sleepy-launcher.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -177,8 +204,10 @@ in {
|
|||||||
(lib.optionals cfg.minecraft.enable [pkgs.prismlauncher]) ++
|
(lib.optionals cfg.minecraft.enable [pkgs.prismlauncher]) ++
|
||||||
(lib.optionals cfg.ffxiv.enable [pkgs.xivlauncher]);
|
(lib.optionals cfg.ffxiv.enable [pkgs.xivlauncher]);
|
||||||
|
|
||||||
nix.settings = (lib.mkIf
|
nix.settings = let
|
||||||
(cfg.aagl.anime-game-launcher.enable || cfg.aagl.honkers-railway-laucher.enable)
|
agl = cfg.aagl;
|
||||||
|
in (lib.mkIf
|
||||||
|
(agl.anime-game-launcher.enable || agl.honkers-railway-laucher.enable || agl.honkers-launcher.enable || agl.wavey-launcher.enable || agl.sleepy-launcher.enable)
|
||||||
{
|
{
|
||||||
substituters = [ "https://ezkea.cachix.org" ];
|
substituters = [ "https://ezkea.cachix.org" ];
|
||||||
trusted-public-keys = [ "ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI=" ];
|
trusted-public-keys = [ "ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI=" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user