cleanFiles
list of non-empty strings
Files and directories relative to the game directory to delete on every startup. Defaults to the "mods" folder.

[ "config" "mods" "resourcepacks" "options.txt" ]
extraGamedirFiles
list of submodules
Extra files to symlink into the game directory.
extraGamedirFiles.*.path
non-empty string
Where to link the file, relative to the game directory.
config/something.cfg
extraGamedirFiles.*.source
path
Path to the file to be linked.
fabric.hash
string
The hash of the fabric version. Leave it empty to have nix tell you what to use.
fabric.version
null or non-empty string
The version of fabric to use. You'll most likely want the latest version from https://github.com/FabricMC/fabric-loader/releases
0.12.5
forge.hash
string
The hash of the forge version. Leave it empty to have nix tell you what to use.
forge.version
null or non-empty string
The version of forge to use. See the available versions here: https://files.minecraftforge.net/net/minecraftforge/forge/
14.23.5.2855
gamedir
non-empty string
The directory where worlds, mods and other files are stored. If it's not an absolute path, it's relative to the working directory where you run minecraft. Can be overwritten with the "MINECRAFT_GAMEDIR" environment variable.
./gamedir
liteloader.hash
string
The hash of the liteloader version. Leave it empty to have nix tell you what to use.
liteloader.url
null or non-empty string
The URL to download liteloader from. To find it go to https://www.liteloader.com/download and copy the URL of the jar file.
http://jenkins.liteloader.com/job/LiteLoaderInstaller%201.12.2/lastSuccessfulBuild/artifact/build/libs/liteloader-installer-1.12.2-00-SNAPSHOT.jar
minecraft.version
non-empty string
The version of minecraft to use.
1.18
modpack.curseforge.fileId
unsigned integer, meaning >=0
The version ID you want to install. To find it go to https://www.curseforge.com/minecraft/modpacks and select the modpack you want. On the files tab, select the file you want. The last part of the URL will be the file's ID.
3590506
modpack.curseforge.hash
string
The hash of the modpack. Leave it empty to have nix tell you what to use.
modpack.curseforge.projectId
null or unsigned integer, meaning >=0
The ID of the modpack you want to install. To find it go to https://www.curseforge.com/minecraft/modpacks and select the modpack you want. The Project ID will be on the right.
256289
modpack.ftb.hash
string
The hash of the modpack. Leave it empty to have nix tell you what to use.
modpack.ftb.id
null or unsigned integer, meaning >=0
The ID of the modpack you want to install. To find it go to https://www.feed-the-beast.com/modpack/ , select your modpack and hover over the title. You'll find a string like "Identifier: xx".
25
modpack.ftb.version
unsigned integer, meaning >=0
The version ID you want to install. To find it go to https://www.feed-the-beast.com/modpack/ , select your modpack, go to the versons tab and hover over the version. You'll find a string like "VersionId: xxxx".
123
mods.curseforge
list of submodules
List of mods to install from curseforge.

[
  # JEI
  {
    projectId = 238222;
    fileId = 3043174;
    hash = "sha256-nbwsDsjCiCH91dykh5CQiVAWB+4lwOhHDEPJ/QvRIFM=";
  }
]
mods.curseforge.*.fileId
unsigned integer, meaning >=0
The ID of the file on curseforge. To find it go to https://www.curseforge.com/minecraft/mc-mods and select the mod you want. On the files tab, select the file you want. The last part of the URL will be the file's ID.
mods.curseforge.*.hash
string
The hash of the mod. Leave it empty to have nix tell you what to use.
mods.curseforge.*.projectId
unsigned integer, meaning >=0
The ID of the mod on curseforge. To find it go to https://www.curseforge.com/minecraft/mc-mods and select the mod you want. The Project ID will be on the right.
mods.manual
list of paths
A list of .jar files to use as mods.

map pkgs.fetchurl [
  # Extended Hotbar
  {
    url = "https://github.com/DenWav/ExtendedHotbar/releases/download/1.2.0/mod-extendedhotbar-1.2.0-mc1.12.2.litemod";
    hash = "sha256-CyB7jypxXq41wAfb/t1RCsxaS8uZZjAl/h531osq0Fc=";
  }
]
mods.modrinth
list of submodules
List of mods to install from modrinth.

[
  # Mod Menu
  {
    projectId = "mOgUt4GM";
    version = "1.16.22";
    hash = "sha256-bYP08vpv/HbEGGISW6ij0asnfZk1nhn8HUj/A7EV81A=";
  }
]
mods.modrinth.*.hash
string
The hash of the mod. Leave it empty to have nix tell you what to use.
mods.modrinth.*.projectId
non-empty string
The ID of the mod on modrinth. To find it go to https://modrinth.com/mods and select the mod you want. The Project ID will be on the right.
mods.modrinth.*.version
non-empty string
The version of the mod on modrinth. To find it go to https://modrinth.com/mods and select the mod you want. On the versions tab, copy the wanted version from the VERSION column.
username
non-empty string
Your in-game username. Can be overwritten with the "MINECRAFT_USERNAME" environment variable.
NixDude