mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-10 09:13:53 +00:00
47 lines
765 B
Nix
47 lines
765 B
Nix
{
|
|
x,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
with x;
|
|
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 = mkBool;
|
|
cli.enable = mkBool;
|
|
};
|
|
};
|
|
|
|
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
|
|
];
|
|
})
|
|
];
|
|
}
|