DEV Community

Sumama-Jameel
Sumama-Jameel

Posted on

Nexus Engine: One command to Set Up a Complete production Environment

I’m 14 and I got tired of spending hours (sometimes days) setting up new machines. Different distros, different package managers, fragile shell scripts, no rollback.

So I built Nexus — a cross-platform environment provisioning engine. One command turns a fresh OS into a fully productive development machine.

The Problem

Setting up a dev machine is painful:

  • Hundreds of Linux distros with different package managers (apt, pacman, dnf, apk).
  • Shell scripts break easily with no rollback or state management.
  • Tools like Ansible are overkill for laptops. Docker doesn’t configure your host. Dotfile managers don’t install dependencies.

Result: Developers lose dozens of hours per year on setup issues.

What Nexus Does

One static Go binary. Detects your OS, chooses the right package manager, applies declarative YAML profiles, and handles everything with security gates and rollback.

No scripts. No manual steps. Works on Linux and Windows (with WSL2 support).

Standout Features

  • Cross-distro support — apt, pacman, dnf, apk behind one interface.
  • 7-step orchestrator with rollback — PreFlight → Refresh → Execute → Verify → Audit. Failed foundation packages trigger full rollback.
  • Security gate (SanitizeAndExecute) — Allowlist, metacharacter rejection, timeouts. No raw shell execution.
  • 10 built-in profiles — Go dev, Rust dev, Frontend, Data Science, Ethical Hacking, etc.
  • WSL2 setup in ~60 seconds on Windows.
  • Dotfiles + age-encrypted vault + Distrobox containers.
  • Community profile registry.
  • Optional Tauri GUI dashboard.

Architecture

Nexus is organized in bounded contexts:

  • BRAIN — Cobra CLI + core engine (Go)
  • DNA — YAML profiles with JSON Schema + struct validation + SHA256 integrity
  • BRIDGE — WSL2 handling (cross-compiled)
  • CONTAINER — Distrobox management
  • VAULT — age encryption
  • REGISTRY — Community profiles

Every command goes through a strict security gate. State is crash-safe with atomic writes and append-only logs.

Quick Start

# Install
go install github.com/Sumama-Jameel/nexus-engine/cmd/nexus@latest

# Initialize
nexus init
Enter fullscreen mode Exit fullscreen mode

On Windows:

nexus wsl setup    # Full WSL2 setup
nexus wsl enter
Enter fullscreen mode Exit fullscreen mode

Competitor Comparison

Tool Static Binary Cross-Distro Security Gate Rollback WSL2 One-Command Init
Nexus Yes Yes Yes Yes Yes Yes
Ansible No Yes No No No No
Nix No Yes No Partial No No
chezmoi Yes Yes No No No No

Nexus combines the best ideas into one tool.

Why I Built It

The Linux desktop (and Windows-to-Linux migration) should be accessible to everyone — not just people who’ve memorized package manager flags. Nexus makes reproducible, secure dev environments simple.

Get Involved

  • Add or improve profiles
  • Test on your distro and open issues
  • Contribute to WSL2 or container features

GitHub: https://github.com/Sumama-Jameel/nexus-engine

What’s the most painful part of setting up a new dev machine for you? Have you tried tools like Nix or Ansible? I’d love your feedback.

Top comments (0)