This commit is contained in:
Chris Kruining 2025-01-25 16:59:55 +01:00
parent b8e2429566
commit b06525436b
10 changed files with 88 additions and 22 deletions

View file

@ -0,0 +1,21 @@
{ 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;
};
};
}