Skyler Grey | 4fe40b4 | 2024-03-04 18:39:57 +0000 | [diff] [blame] | 1 | { config, lib, pkgs, ... }: { |
2 | options = { | ||||
3 | chimera.games.minecraft = { | ||||
4 | enable = lib.mkEnableOption "Enable Minecraft"; | ||||
5 | launcher.package = lib.mkOption { | ||||
6 | type = lib.types.package; | ||||
7 | default = pkgs.prismlauncher; | ||||
8 | example = pkgs.atlauncher; | ||||
9 | }; | ||||
10 | }; | ||||
11 | }; | ||||
12 | |||||
13 | config = { | ||||
14 | home.packages = lib.mkIf config.chimera.games.minecraft.enable [ config.chimera.games.minecraft.launcher.package ]; | ||||
15 | }; | ||||
16 | } |