2022-01-11 18:44:40 +01:00
|
|
|
{ config, lib, options, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.modules.desktop.gaming.minecraft;
|
|
|
|
in {
|
|
|
|
options.modules.desktop.gaming.minecraft = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = "Enables Minecraft through the PolyMC launcher";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2022-04-20 10:53:28 +02:00
|
|
|
environment.systemPackages = with pkgs; [ polymc ];
|
2022-01-11 18:44:40 +01:00
|
|
|
};
|
|
|
|
}
|