chore: pretty up with alejandra

This commit is contained in:
Peritia 2025-09-22 16:16:02 +02:00
parent 7bbda6140f
commit 37b85877bb
75 changed files with 584 additions and 452 deletions

View file

@ -14,13 +14,14 @@
# - Installed via home.packages
# - JDKs are added to PATH so PrismLauncher can discover them
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.prismlauncher;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.prismlauncher;
in {
options.nyx-module.home.prismlauncher = {
enable = lib.mkEnableOption "Enable PrismLauncher (Minecraft launcher)";
@ -28,16 +29,16 @@ in
jdks = lib.mkOption {
type = lib.types.listOf lib.types.package;
default = [ pkgs.jdk17 ];
example = [ pkgs.jdk8 pkgs.jdk17 pkgs.jdk21 ];
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 =
[ pkgs.prismlauncher ]
++ lib.optionals cfg.includeFfmpeg [ pkgs.ffmpeg ]
[pkgs.prismlauncher]
++ lib.optionals cfg.includeFfmpeg [pkgs.ffmpeg]
++ cfg.jdks;
};
}