added aagl flake, implemeneted into gaming apps module

This commit is contained in:
2025-11-02 10:25:27 -05:00
parent 257fab9832
commit 6024b77535
5 changed files with 125 additions and 16 deletions

View File

@@ -1,11 +1,14 @@
{
{
config,
lib,
pkgs,
aagl,
...
}: let
cfg = config.gaming;
in {
imports = [ aagl.nixosModules.default ];
options.gaming = {
steam = {
enable = lib.mkEnableOption "Steam gaming platform";
@@ -108,6 +111,16 @@ in {
ffxiv = {
enable = lib.mkEnableOption "Final Fantasy XIV and it's accompanied (unofficial) launcher";
};
aagl = {
anime-game-launcher = {
enable = lib.mkEnableOption "AAGL (legacy)";
};
honkers-railway-launcher = {
enable = lib.mkEnableOption "Honkai: Star Rail launcher";
};
};
};
config = {
@@ -139,6 +152,14 @@ in {
];
};
programs.anime-game-launcher = lib.mkIf cfg.aagl.anime-game-launcher.enable {
enable = true;
};
programs.honkers-railway-launcher = lib.mkIf cfg.aagl.honkers-railway-launcher.enable {
enable = true;
};
environment.systemPackages =
(lib.optionals cfg.lutris.enable (
[cfg.lutris.package] ++
@@ -155,5 +176,13 @@ in {
)) ++
(lib.optionals cfg.minecraft.enable [pkgs.prismlauncher]) ++
(lib.optionals cfg.ffxiv.enable [pkgs.xivlauncher]);
nix.settings = (lib.mkIf
(cfg.aagl.anime-game-launcher.enable || cfg.aagl.honkers-railway-laucher.enable)
{
substituters = [ "https://ezkea.cachix.org" ];
trusted-public-keys = [ "ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI=" ];
}
);
};
}