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

34 lines
731 B
Nix
Raw Normal View History

2024-12-09 01:15:55 +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;
jre = with pkgs; [ temurin-jre-bin-21 temurin-jre-bin-17 temurin-jre-bin-8 ];
in {
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;
})
];
})
(mkIf cfg.cli.enable { # CLI LAUNCER
home.packages = with pkgs; [ portablemc ferium ];
})
];
}