dev pack ships full mongodb — breaks the default first build #2

Open
opened 2026-06-29 03:01:04 +00:00 by padreug · 0 comments
Owner

Problem

modules/development.nix:114 puts the full mongodb server into environment.systemPackages (gated by packs.development.enable). MongoDB is:

  • unfree (SSPL), so cache.nixos.org doesn't build it → Nix compiles it from source
  • currently failing to compile (scons: building terminated ... build/nixos/mongo/db/pipeline/expression.o failed)
  • extremely RAM-hungry even when it does build

Critically, the template enables packs.development by default, so a brand-new adopter hits this on their very first nixos-rebuild.

Impact

High — breaks the out-of-box build for the default template config.

Suggested fix

Drop mongodb from modules/development.nix. The pack already provides everything needed for Mongo work without the from-source server:

  • mongodb-tools (client utilities, modules/packs/development.nix:86)
  • the dev-mongodb script that runs the server in Docker (modules/development.nix:233)

While in there, worth a quick scan of the rest of the dev pack for other unfree/uncached-from-source landmines.

Found while helping a friend adopt the template on existing NixOS.

## Problem `modules/development.nix:114` puts the full **`mongodb`** server into `environment.systemPackages` (gated by `packs.development.enable`). MongoDB is: - unfree (SSPL), so `cache.nixos.org` doesn't build it → Nix compiles it **from source** - currently **failing to compile** (`scons: building terminated ... build/nixos/mongo/db/pipeline/expression.o failed`) - extremely RAM-hungry even when it does build Critically, the **template enables `packs.development` by default**, so a brand-new adopter hits this on their very first `nixos-rebuild`. ## Impact High — breaks the out-of-box build for the default template config. ## Suggested fix Drop `mongodb` from `modules/development.nix`. The pack already provides everything needed for Mongo work without the from-source server: - `mongodb-tools` (client utilities, `modules/packs/development.nix:86`) - the `dev-mongodb` script that runs the server in Docker (`modules/development.nix:233`) While in there, worth a quick scan of the rest of the dev pack for other unfree/uncached-from-source landmines. Found while helping a friend adopt the template on existing NixOS.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aiolabs/omnixient#2
No description provided.