dotfiles/nix/home-manager/modules/multimc.nix

18 lines
381 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.magic_rb.programs.multimc;
inherit (config.magic_rb.pkgs) nixpkgs-unstable;
in
2021-02-26 10:24:58 +01:00
{
options.magic_rb.programs.multimc = {
enable = mkEnableOption "Enable MultiMC Minecraft launcher.";
};
config = mkIf cfg.enable {
home.packages = [
(nixpkgs-unstable.multimc.override { jdk = pkgs.jdk11; })
];
};
2021-02-26 10:24:58 +01:00
}