21 lines
456 B
Nix
21 lines
456 B
Nix
{ options, config, lib, pkgs, ... }:
|
|
let
|
|
inherit (lib.modules) mkIf mkForce mkMerge;
|
|
inherit (lib.attrsets) attrValues;
|
|
|
|
cfg = config.modules.desktop.games.minecraft;
|
|
in
|
|
{
|
|
options.modules.desktop.games.minecraft = let
|
|
inherit (lib.options) mkEnableOption;
|
|
in {
|
|
enable = mkEnableOption "minecraft (Modrinth)";
|
|
};
|
|
|
|
config = mkIf cfg.enable
|
|
{
|
|
user.packages = attrValues {
|
|
inherit (pkgs) modrinth-app minecraft;
|
|
};
|
|
};
|
|
}
|