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=" ];
}
);
};
}

View File

@@ -62,9 +62,9 @@ in {
(mkIf (cfg.gpuVendor == "amd") {
services.xserver.videoDrivers = ["amdgpu"];
hardware.graphics.extraPackages = with pkgs; [
amdvlk
];
# hardware.graphics.extraPackages = with pkgs; [
# amdvlk
# ];
environment.systemPackages = with pkgs; [
radeontop
];

View File

@@ -1,8 +1,8 @@
{
config,
lib,
pkgs,
userName,
aagl,
...
}: let
flatpakPackages = [
@@ -18,7 +18,7 @@
in {
imports = [
(import ../../apps/flatpak.nix {
inherit lib pkgs flatpakPackages userName;
inherit lib pkgs flatpakPackages userName aagl;
})
../../apps/gaming.nix
../../apps/appimage.nix
@@ -108,6 +108,7 @@ in {
ffxiv.enable = true;
minecraft.enable = true;
aagl.anime-game-launcher.enable = true;
};
# Power management (see ../../pwrMgmt/default.nix)