Personal Nix setup
at main 439 B view raw
1{ lib, config, pkgs, ... }: 2 3with lib; 4let 5 cfg = config.modules.apps; 6in { 7 options.modules.apps.minecraft = { 8 enable = mkOption { 9 default = false; 10 description = "Whether to enable Minecraft via Prism."; 11 type = types.bool; 12 }; 13 }; 14 15 config = mkIf (cfg.enable && cfg.minecraft.enable) { 16 home.packages = with pkgs; [ 17 (prismlauncher.override { 18 jdks = [ temurin-bin-21 ]; 19 }) 20 ]; 21 }; 22}