nichts/modules/programs/gui/minecraft.nix

23 lines
434 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
lib,
pkgs,
...
}:
with lib; let
2024-08-13 11:09:42 +02:00
inherit (config.modules.other.system) username;
2024-04-22 21:43:37 +02:00
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
2024-05-22 14:29:45 +02:00
home.packages = with pkgs; [prismlauncher];
2024-04-22 21:43:37 +02:00
};
};
}