diff --git a/home/minecraft/home.nix b/home/minecraft/home.nix index 5dedf251..f67be4ff 100644 --- a/home/minecraft/home.nix +++ b/home/minecraft/home.nix @@ -2,15 +2,15 @@ , lib , config , ... }: with lib; let + inherit (config.passthrough) gui; cfg = config.passthrough.minecraft; enable = cfg.enable && config.home.username == "minecraft"; in mkIf enable { home.packages = with pkgs; [ - prismlauncher jdk8 - ]; + ] ++ optional gui prismlauncher; - wayland.windowManager.sway.config.window.commands = [ + wayland.windowManager.sway.config.window.commands = mkIf gui [ { criteria.app_id = "org.prismlauncher.PrismLauncher"; command = "floating enable"; } ]; }