Nixpacks is deprecated: move nixpacks.toml to Railpack
Railpack ignores nixpacks.toml. Map each Nixpacks setting to railpack.json, see where Railway, Coolify and Dokploy stand, and test the app on Gregale.
Nixpacks is in maintenance mode, and Railway now builds with Railpack.
The Nixpacks README says the
project is no longer under active development and recommends Railpack as the
replacement. Railway's Config as Code reference
lists two builders, RAILPACK (the default) and DOCKERFILE. The catch is
your config: Railpack does not read nixpacks.toml or NIXPACKS_*
variables, so a start command, build step or system package that lives
only there is silently dropped on the first Railpack build. This page maps
each Nixpacks setting to its Railpack equivalent, shows where other
platforms stand, and shows the same app running on Gregale.
Staying on Railway, Coolify or Dokploy? Translate nixpacks.toml key by key and switch a staging copy first.
Try the same app on Gregale with a
railpack.json and compare its response before moving traffic.
What changed
- March 4, 2025: Railway released Railpack as the next version of its builder, based on what it learned building more than 14 million apps with Nixpacks (Railway blog). New Railway services default to Railpack.
- Nixpacks went into maintenance mode. The README now opens with a maintenance notice and points to Railpack, which describes itself as the successor to Nixpacks. Railpack's latest release is v0.45.0 (December 2, 2026).
- Railway's docs list no Nixpacks builder. The Config as Code reference
gives
RAILPACK(default) andDOCKERFILE, and Railway's old Nixpacks docs page now serves the Railpack page. Railway's own publishedrailway.schema.jsonstill listsNIXPACKS, so an oldrailway.jsoncan still validate in your editor. - No end date has been announced for Nixpacks itself. It still builds on platforms that bundle it, such as Coolify and Dokploy.
What happens to nixpacks.toml
Railpack reads its configuration from railpack.json, RAILPACK_*
variables and Mise config files. It has no
nixpacks.toml reader: Railway's support bot answered on Central Station
that the file "will be silently
ignored once you switch", and Sevalla's Railpack docs
tell users to translate nixpacks.toml and NIXPACKS_* variables before
switching, because Railpack ignores Nixpacks configuration.
What that looks like in practice:
- No start command. A Node app with no
startscript and no conventional entry file, whose start lived in[start] cmd, has nothing to run. - A build step that never runs.
[phases.build] cmdsorNIXPACKS_BUILD_CMDis ignored, so the image starts without the files the build produced. - A missing system package.
nixPkgs,aptPkgs,NIXPACKS_PKGSandNIXPACKS_APT_PKGSare ignored, so a library such asffmpeg, or the Chromium libraries Puppeteer needs, is not in the image. - A different language version. Railpack picks its own default when
the repository does not pin one. Pin it in the repository first, for
example with
engines.nodeor.python-version.
nixpacks.toml to railpack.json, key by key
Nixpacks (nixpacks.toml / variable) | Railpack (railpack.json / variable) |
|---|---|
[start] cmd / NIXPACKS_START_CMD | deploy.startCommand / RAILPACK_START_CMD |
[phases.build] cmds / NIXPACKS_BUILD_CMD | steps.build.commands / RAILPACK_BUILD_CMD |
[phases.install] cmds / NIXPACKS_INSTALL_CMD | steps.install.commands / RAILPACK_INSTALL_CMD |
[phases.setup] nixPkgs / NIXPACKS_PKGS | packages, for example { "node": "22" } / RAILPACK_PACKAGES |
aptPkgs / NIXPACKS_APT_PKGS | buildAptPackages and deploy.aptPackages / RAILPACK_BUILD_APT_PACKAGES and RAILPACK_DEPLOY_APT_PACKAGES |
providers | provider |
[variables] | The service's environment variables |
NIXPACKS_CONFIG_FILE | RAILPACK_CONFIG_FILE |
NIXPACKS_NO_CACHE | RAILPACK_DISABLE_CACHES |
Two differences to watch. Railpack's packages come from Mise, not Nix, so
a Nix package name may not exist there; system libraries usually move to
buildAptPackages (needed while building) or deploy.aptPackages (needed
at runtime). And both tools use "..." to extend a list instead of
replacing it, so "commands": ["...", "./my-step.sh"] keeps Railpack's own
commands and adds yours.
A nixpacks.toml like this:
[phases.setup]
nixPkgs = ['...', 'ffmpeg']
[phases.build]
cmds = ['npm run build']
[start]
cmd = 'node dist/server.js'
becomes this railpack.json:
{
"$schema": "https://schema.railpack.com",
"packages": { "node": "22" },
"deploy": {
"startCommand": "node dist/server.js",
"aptPackages": ["...", "ffmpeg"]
}
}
Railpack runs a Node app's build script on its own, so npm run build
needs no step of its own; add steps.build.commands only for a command
that is not a package script. Delete nixpacks.toml once a Railpack build
has passed, so nobody edits a file that no longer does anything.
Where each platform stands
| Platform | Nixpacks | Railpack | Reads nixpacks.toml |
|---|---|---|---|
| Railway | Not in the docs' builder list | Default builder | No, under Railpack |
| Coolify | A build pack, configured by nixpacks.toml | A build pack, in beta, configured by railpack.json | Only with the Nixpacks build pack |
| Dokploy | The default build type | A build type | Only with Nixpacks |
| Sevalla | Deprecated; existing applications keep it | A build option | Only with Nixpacks |
| Gregale | Not used | Source builds read railpack.json's start command and package versions | No |
Sources, checked 2026-12-05: Nixpacks README, Railpack README, Railway: Config as Code reference, Railway: Why we're moving on from Nix, Railpack: configuration file, Railpack: environment variables, Nixpacks: configuration file, Nixpacks: environment, Coolify: build packs, Dokploy: build type, Sevalla: Railpack.
Try the app on Gregale
Gregale's source builds detect Node, Python and Go, and read a
railpack.json: deploy.startCommand becomes the app's start command and
packages pins the Node and Python versions. So the file you write for
Railpack also moves the app. Gregale does not read nixpacks.toml either.
A Node 22 app whose start command lives only in nixpacks.toml: no
start script, no main field and no index.js, so Railpack's own
detection finds nothing to run.
package.json:
{
"name": "nixpacks-move-demo",
"version": "1.0.0",
"private": true,
"engines": { "node": "22" }
}
src/server.js:
const http = require('http');
const port = process.env.PORT || 3000;
const from = (process.argv.find((a) => a.startsWith('--from=')) || '--from=unknown').slice(7);
http
.createServer((req, res) => {
res.setHeader('content-type', 'application/json');
res.end(JSON.stringify({ ok: true, node: process.version, started_by: from }));
})
.listen(port, '0.0.0.0');
nixpacks.toml, left in place:
[start]
cmd = 'node src/server.js --from=nixpacks'
railpack.json, the new file:
{
"$schema": "https://schema.railpack.com",
"packages": { "node": "22" },
"deploy": { "startCommand": "node src/server.js --from=railpack" }
}
and a one-line gregale.yaml with access: public, because an app on
Hobby and above otherwise needs a Gregale API key. From the directory:
gregale deploy --dry-run --name nixpacks-move-demo
gregale deploy --name nixpacks-move-demo
The dry run prints the start command Gregale will use, so you can see which file it came from before anything is built. The app answers with the flag it was started with.
Verified on Gregale, December 5, 2026. Without railpack.json, the
image built in 28.6 seconds and the deploy then failed before serving: with
no start command the image's default command exited with status 0, and
Gregale reported that the start command ran to completion instead of
serving. After adding railpack.json, with nixpacks.toml still in the
repository, the dry run showed start=node src/server.js --from=railpack,
the deploy finished in 77 seconds, and the app returned
{"ok":true,"node":"v22.23.5","started_by":"railpack"}. The nixpacks.toml
command never ran.
Anything Railpack would install beyond that, such as buildAptPackages,
deploy.aptPackages or custom steps, goes in a Dockerfile on Gregale,
which is built as is. The Railway migration guide
maps the rest of a service: variables, the database, several services and
your domain. Gregale has no persistent volumes, so state goes in
managed PostgreSQL or object storage.
Pricing
gregale deploy --dry-run shows what Gregale detects before anything is
uploaded. Gregale Free covers 1 app with 256 MB and 20 GB-RAM-hours a
month. Hobby costs $10 a month for 5 apps with 512 MB each and 200
GB-RAM-hours, and includes one managed PostgreSQL database. Compute is
billed only while an instance runs. See Gregale pricing and
Migrate from Railway.
Questions
- Is Nixpacks deprecated?
Nixpacks is in maintenance mode and not under active development; its README recommends Railpack. Railway’s docs list Railpack (the default) and Dockerfile as builders. No end date has been announced, and Coolify and Dokploy still offer Nixpacks.
- Does Railpack read nixpacks.toml?
No. Railpack reads railpack.json, RAILPACK_ variables and Mise config files. A start command, build step or package that lives only in nixpacks.toml or a NIXPACKS_ variable is dropped on the first Railpack build.
- How do I convert nixpacks.toml to railpack.json?
[start] cmd becomes deploy.startCommand, [phases.build] cmds becomes steps.build.commands, [phases.install] cmds becomes steps.install.commands, nixPkgs becomes packages (Mise names) and aptPkgs becomes buildAptPackages or deploy.aptPackages. Each NIXPACKS_ variable has a RAILPACK_ counterpart, such as RAILPACK_START_CMD.
- Why does my app build but not start after switching to Railpack?
Its start command probably lived in nixpacks.toml. On Gregale, a Node app whose start was only there built in 28.6 seconds and then exited with status 0 before serving. Add deploy.startCommand to railpack.json or a start script to package.json.
- Can I move a Nixpacks app to Gregale?
Yes. Gregale’s source builds detect Node, Python and Go and read railpack.json’s deploy.startCommand and packages; anything else Railpack would install goes in a Dockerfile. In our test the same railpack.json deployed in 77 seconds.