1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-10 12:53:58 +00:00
ultima/modules/home/programs/gui/minecraft/default.nix

47 lines
765 B
Nix
Raw Normal View History

{
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;
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 [
(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
})
(mkIf cfg.cli.enable {
# CLI LAUNCER
home.packages = with pkgs; [
portablemc
ferium
];
2024-12-06 12:57:22 +00:00
})
];
}