1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-10 09:33:52 +00:00
ultima/modules/home/programs/gui/minecraft/default.nix
2024-12-09 10:15:55 +09:00

34 lines
731 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 ];
})
];
}