nichts/modules/gui/minecraft.nix
2024-08-13 11:09:42 +02:00

22 lines
434 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib; let
inherit (config.modules.other.system) username;
cfg = config.modules.programs.minecraft;
in {
options.modules.programs.minecraft = {
enable = mkEnableOption "minecraft";
wayland = mkEnableOption "wayland";
};
config = mkIf cfg.enable {
home-manager.users.${username} = {
# Install minecraft
home.packages = with pkgs; [prismlauncher];
};
};
}