2024-12-17 12:10:05 +00:00
|
|
|
{
|
|
|
|
x,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
2024-12-06 12:57:22 +00:00
|
|
|
with lib;
|
2024-12-09 01:15:55 +00:00
|
|
|
with x;
|
2024-12-06 12:57:22 +00:00
|
|
|
let
|
|
|
|
cfg = config.module.programs.gui.minecraft;
|
2024-12-17 12:10:05 +00:00
|
|
|
jre = with pkgs; [
|
|
|
|
temurin-jre-bin-21
|
|
|
|
temurin-jre-bin-17
|
|
|
|
temurin-jre-bin-8
|
|
|
|
];
|
|
|
|
in
|
|
|
|
{
|
2024-12-06 12:57:22 +00:00
|
|
|
options = {
|
|
|
|
module.programs.gui.minecraft = {
|
2024-12-09 01:15:55 +00:00
|
|
|
enable = mkBool;
|
|
|
|
cli.enable = mkBool;
|
2024-12-06 12:57:22 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkMerge [
|
2024-12-17 12:10:05 +00:00
|
|
|
(mkIf cfg.enable {
|
|
|
|
# BEST MINECRAFT LACUNHER
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
(prismlauncher.override {
|
|
|
|
gamemodeSupport = true;
|
|
|
|
controllerSupport = true;
|
|
|
|
textToSpeechSupport = false;
|
|
|
|
jdks = jre;
|
|
|
|
})
|
|
|
|
];
|
2024-12-06 12:57:22 +00:00
|
|
|
})
|
2024-12-17 12:10:05 +00:00
|
|
|
(mkIf cfg.cli.enable {
|
|
|
|
# CLI LAUNCER
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
portablemc
|
|
|
|
ferium
|
|
|
|
];
|
2024-12-06 12:57:22 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|