X Minecraft Launcher (XMCL) - A modern Minecraft launcher packaged for Nix and Home Manager. This flake allows you to install and run XMCL on NixOS and other systems with Nix.
xmclpackage with necessary runtime dependencies- Support for additional command line arguments
- Automatic detection of specified JREs in XMCL
- Generation of
java.jsonconfiguration for available Java versions - Wayland and Ozone Platform support
- Home Manager module for convenient integration
Just add it to your NixOS flake.nix or home-manager:
inputs = {
xmcl = {
url = "github:x45iq/xmcl-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# ...
}nix run github:x45iq/xmcl-nix{
# home.nix
imports = [
inputs.xmcl.homeModules.xmcl
];
programs.xmcl = {
enable = true;
commandLineArgs = [
"--password-store=\"gnome-libsecret\""
];
jres = [
pkgs.jre8
pkgs.temurin-jre-bin-17
];
};
}To integrate xmcl to your NixOS/Home Manager configuration, add the
following to your environment.systemPackages or home.packages:
# options are: 'x86_64-linux', 'aarch64-linux'
inputs.xmcl.packages."${system}".default| Option | Type | Default | Description |
|---|---|---|---|
programs.xmcl.enable |
bool |
false |
Enables XMCL installation |
programs.xmcl.package |
package |
pkgs.xmcl |
XMCL package to use |
programs.xmcl.commandLineArgs |
list of string |
[] |
Additional command line arguments |
programs.xmcl.jres |
list of package |
[] |
List of JREs available to XMCL |
- Automatic generation of
java.jsonwith information about available Java versions - Support for automatic detection of major and full Java versions
- Wayland integration via Ozone Platform
- Automatic binary patching
- Desktop file support for integration with desktop environments