Main
This commit is contained in:
parent
fc0abdd4bb
commit
aca73cdd0f
73 changed files with 3873 additions and 381 deletions
|
|
@ -1,3 +1,20 @@
|
|||
# PrismLauncher (Home Module)
|
||||
#
|
||||
# Provides:
|
||||
# - PrismLauncher (Minecraft launcher)
|
||||
# - Optional inclusion of ffmpeg (some mods require it)
|
||||
# - Configurable list of JDKs (for modpacks that need specific versions)
|
||||
#
|
||||
# Options:
|
||||
# - enable → Enable PrismLauncher
|
||||
# - includeFfmpeg→ Include ffmpeg for mods
|
||||
# - jdks → List of Java runtimes for PrismLauncher
|
||||
#
|
||||
# Notes:
|
||||
# - Installed via home.packages
|
||||
# - JDKs are added to PATH so PrismLauncher can discover them
|
||||
#
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
|
|
@ -5,16 +22,22 @@ let
|
|||
in
|
||||
{
|
||||
options.nyx-module.home.prismlauncher = {
|
||||
enable = lib.mkEnableOption "Enable prismlauncher (home) module";
|
||||
enable = lib.mkEnableOption "Enable PrismLauncher (Minecraft launcher)";
|
||||
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.prismlauncher;
|
||||
description = "Package to install for prismlauncher.";
|
||||
includeFfmpeg = lib.mkEnableOption "Include ffmpeg for mods that require it";
|
||||
|
||||
jdks = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.package;
|
||||
default = [ pkgs.jdk17 ];
|
||||
example = [ pkgs.jdk8 pkgs.jdk17 pkgs.jdk21 ];
|
||||
description = "List of Java runtimes to make available for PrismLauncher.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ cfg.package ];
|
||||
home.packages =
|
||||
[ pkgs.prismlauncher ]
|
||||
++ lib.optionals cfg.includeFfmpeg [ pkgs.ffmpeg ]
|
||||
++ cfg.jdks;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue