{ pkgs, lib, config, ... }: with lib; let cfg = config.module.programs.gui.minecraft; jre = with pkgs; [ temurin-jre-bin-21 temurin-jre-bin-17 temurin-jre-bin-8 ]; in { options = { module.programs.gui.minecraft = { enable = mkEnableOption ""; cli.enable = mkEnableOption ""; }; }; config = mkMerge [ (mkIf cfg.enable { # BEST MINECRAFT LACUNHER home.packages = with pkgs; [ (prismlauncher.override { gamemodeSupport = true; controllerSupport = true; textToSpeechSupport = false; jdks = jre; }) ]; }) (mkIf cfg.cli.enable { # CLI LAUNCER home.packages = with pkgs; [ portablemc ferium ]; }) ]; }