No description
  • Nim 86.1%
  • Zig 6.5%
  • C 4%
  • Shell 2.6%
  • C++ 0.2%
  • Other 0.3%
Find a file
2026-02-17 22:38:08 +01:00
blueprints feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
core fix(rumpk): CI-ready build scripts — bash shebang, dynamic Nim lib path 2026-02-17 22:38:08 +01:00
docs feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
ext feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
legal feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
os/nexusos feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
public/docs feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
recipes feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
seeds feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
src/nexus feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
tests feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
tools feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
vendor feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
website@aa4bbc2714 feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
.gitignore feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
.gitmodules feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
.nexus.env feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
CONTRIBUTING.md feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
DOCTRINE.md feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
Nexus Project Master Specification v1.0.md feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
Nexus Project Overview.md feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
README.md feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
repo layout.md feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
SETUP.md feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
SPEC.md feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00
WHAT_IS_NEXT.md feat: nexus-forge monorepo — source-only sovereign clean import 2026-02-17 22:16:34 +01:00

Nexus Project Master Specification v1.0

"The Operating System That Survives Forever"
Military-grade security. Deterministic ledger. Computable trust. Zero GNUs given. A system designed to mean something.

Status: nip 1.0 MVP achieved · Rumk v0.9 Unikernel Complete · Nexus Micro ISO verified in QEMU
Primary Language: Nim (ARC/ORC mandatory)
Secondary Glue: Zig (C interop, static musl)
License Core: SSS v1.0
License Extensions: Apache 2.0
License Community: CC0
Date: December 27, 2025
Authors: Markus Maiwald, Leo & Voxis Forge

This is the single source of truth for every human and silicon working on Nexus. Read it. Internalize it. Build to it.

1. Project Vision (Non-Negotiable)

Nexus OS is the operating system of Libertaria's future: Military-grade security and modularity. Fast boot. No bloat. Hardened kernel. Zero GNUs given. A system designed to mean something. We do things the right way—correctness over speed.
The default Desktop uses KDE with systemd and is immutable and offers the nip package manager with NexusCells + Flatpak as preferred packages.
The Pro Desktop is using Niri & Hyprland WM with only nip package manager.
The cloud enabled Servers are containerd / podman first and are especially suited for Kubernetes and IOT like deployments, but with container-agnostic pledge/unveil enforcement to go beyond Linux GPL limitations.

We build Rumk — the hypervisor that never dies.
Everything else is a signed, hot-loadable module on top.
One codebase morphs into every profile from 8-bit MCU to quantum cluster.
No forks. No rewrites. No legacy debt.

We enforce the Three Doctrines at hardware level:

  1. Absolute Provenance — Variant-CID is eternal truth.
  2. Deterministic Ledger — ProvChain logs every breath.
  3. Computable Trust — Pledge/unveil + signed Tracks = automatic enforcement.

2. Product Family (All Built by Nexus Build Toolkit)

Profile Size Target Key Traits Status
Nexus Tiny 256 B 32 KB 8-bit MCU → single sensor One NPS, no OS Q2 2026
Nexus Micro 180 KB 1.2 MB Embedded (Pi, VisionFive, satellite) Rumk + 310 NPLs (drivers) Prototype
Nexus Core 48 MB Workstations / servers Rumk + Dragonfly SMP + full NPKs Q3 2026
Nexus Fleet 840 MB Clusters / quantum farms Rumk nodes + ProvChain Network Q4 2026
Nexus/Unikernel 280 KB (v0.9) Aerospace / radiation-hardened Hybrid Nim+Zig, static musl, SMP COMPLETE

All profiles share the same /Programs/App/Version/ hierarchy and .np* package format.

Box Distributions (OS Flavors)

Box Base Target Status
🟦 NexBox Linux-musl + OpenBSD userland Desktop, Cloud, Kubernetes 🚧 Q1 2026
🟧 OpenBox Pure OpenBSD 7.x ARM64 appliances, satellites 🚧 RPi5 Prototype
🟪 DragonBox DragonflyBSD + HAMMER2 Proxmox killer, enterprise storage 🔮 Q3 2026

See docs/BOX-PROFILES.md for detailed architecture.

3. Core Architecture (Locked)

Component Technology Reason / Status
Hypervisor Rumk (Nim, ~1700 LOC) Frozen core, 12 entries + 1 meta-slot
SMP DragonflyBSD LWKT message-passing Zero contention, scales to 256 cores
Security Pledge/unveil + Landlock-style per NPL Least privilege by default
Ledger ProvChain (CID + Ed25519 + GPS time) Immutable audit trail
Upgrade Path BEB (Boot Extension Block) updatable microcode Core Rumk never changes
Driver Model NPLs (Nip Libraries) isolated VMs, 9P communication Crash = restart VM, no panic
App Model NPKs (Nip Packages) userland containers NipCells evolved
Package Manager nip grafts Linux/Windows/Nix/everything → .np* Universal ecosystem day one
Build System nexus build toolkit (Nim) One command → any profile
Bootloader nexus-boot (forked Limine, stripped) <300 LOC, multi-arch, optional splash
Privilege Modes Nim wrappers for RISC-V M/S/U modes Deterministic isolation, radiation tolerance
Interrupt/Scheduling Zig-like assembly + Nim logic ECC scrubbing, enforced determinism
Toolchain Nim + Zig grafting Cross-compile ease, no deps

4. Package Taxonomy (Human-Readable Hierarchy)

Type Label Purpose Proximity to Metal Example
NPS Nip Sensor Tiny, single-purpose Direct MMIO Temperature probe
NPL Nip Library Drivers / filters One hop (9P) iwlwifi, NDIS printer
NPX Nip eXtension Hot hooks (eBPF replacement) Trap dispatch Packet filter, tracing
NPM Nip Module Pure logic No hardware Orbital math
NPK Nip Package End-user apps Full sandbox Firefox, KDE
NPI Nip Interface API bridges Optional HTTP, gRPC

5. Immediate Roadmap (Next 6 Months Non-Negotiable)

Quarter Milestone Deliverable Status
Q4 2025 Rumk v0.9 Zig runtime, musl static, unikernel foundation, NPL, SMP COMPLETE
Q1 2026 Rumk v1.0 Radiation hardening, VisionFive 2 boot, dual-bank OTA 🚧 In Progress
Q1 2026 nexus-boot v1 Multi-arch, Micro ISO generation COMPLETE
Q2 2026 Nexus Micro ISO Satellite-ready demo for ESA Hungary 🎯 Target
Q3 2026 Nexus Core KDE/Hyprland workstation with full driver graft 🔮 Planned

Dec 27, 2025 Achievement: Rumk v0.9 Phases 1.1-5 complete. 280KB unikernel verified in QEMU with SMP telemetry, NPL lifecycle, and ProvChain logging.

6. Development Principles (Law)

  • Speed > Perfection until prototype boots
  • Pragmatic over purist — graft what works, harden later
  • One codebase, many targets — no per-arch forks
  • Every commit must produce a bootable image
  • Human-readable labels — NP* taxonomy mandatory
  • Respect architectures, set limits — docs explain why

7. Repository Structure

NexusLabs/
├── rumk/                  # Hypervisor core (Nim)
├── nip/                   # Package manager (95% done)
├── nexus-build/           # Build toolkit
├── nexus-boot/            # Bootloader (forked Limine)
├── glue/                  # Zig C interop objects
├── npk/                   # Example packages (NPL/NPK/NPS)
├── docs/                  # Doctrine, taxonomy, Hall of Fame spec
└── .agents/               # Steering specs

We are not building another OS.
We are building the last hypervisor humanity will ever need.

— Markus Maiwald & Leo AI & Voxis Forge
December 26, 2025 Status Tests Coverage Documentation Roadmap

🚧 Current Status: nip MVP Achieved

nip 1.0 MVP is complete! The package manager is ready with:

  • Git LFS support (auto-detect, auto-pull)
  • Configurable recipe repos (NIP_RECIPE_REPO)
  • Bootstrap CLI for package manager tools (nix, pkgsrc, gentoo)
  • Universal package grafting from Nix, PKGSRC, Pacman

nexus build toolkit is ~50% complete.

What is NexusOS Toolkit?

A revolutionary suite of tools that brings together the best of multiple package ecosystems with a vision for AI-First Autonomous Operations:

  • NIP (Nexus Integrated Package Manager) - Universal package management
  • Nexus - System compilation tool (coming soon)
  • UTCP (Universal Telemetry and Control Protocol) - AI-driven autonomous management (v2.0)

🎯 The Vision: AI-First Package Management

NexusOS Toolkit is building toward a future where AI SysOps autonomously manage your systems:

  • Self-Monitoring: Continuous integrity verification and health monitoring
  • Self-Healing: Automatic detection and correction of configuration drift
  • Self-Optimizing: AI-driven performance tuning and resource allocation
  • Zero-Touch Operations: Autonomous updates, maintenance, and troubleshooting

This vision will be realized through UTCP, a secure bidirectional protocol enabling AI controllers to monitor telemetry and execute commands on managed nodes. Think of it as "self-driving infrastructure" - your systems maintain themselves while you focus on innovation.

🚀 NIP - Universal Package Manager

Key Features

Universal - Works with Nix, PKGSRC, Gentoo, Pacman Automatic - Self-installing, self-updating, self-maintaining Fast - 600x speedup with caching Collaborative - Remote cache sharing across teams Safe - Automatic backups and easy rollback Containerized - Optional Containerd isolation Multi-platform - Linux, BSD, macOS support

Quick Start

# Build a package
nip build firefox +wayland

# First time: Installs tools, builds, caches
# Second time: <1 second (cached!)

# Enable remote cache for team sharing
nip cache remote config --url https://cache.example.com --enable

# Update everything
nip update all

Performance

  • Individual Developer: 900x speedup
  • Team of 5: 80% time savings
  • CI/CD Pipeline: 90% time savings

Installation

# Clone the repository
git clone https://git.maiwald.work/Nexus/NexusToolKit.git
cd NexusToolKit/nip

# Build NIP
nim c nip.nim

# Run
./nip --help

📚 Documentation

User Guides

Platform Guides

Reference

🏗️ Architecture

NIP Architecture
├── Bootstrap System - Automatic tool installation
├── Recipe System - Package definitions and management
├── Container Support - Isolated builds (Docker/Podman)
├── Binary Caching - Local and remote caching
└── Auto Updates - Self-maintaining system

🧪 Testing

# Run all tests
cd nip/tests
./run_all_tests.sh

# Run specific test suite
nim c -r test_binary_cache.nim

# Multi-platform tests
./run_multiplatform_tests.sh

150+ tests, all passing!

🎯 Use Cases

Individual Developer

nip build myapp +debug
# Instant rebuilds with caching

Development Team

# Developer 1 builds
nip build myapp +production

# Developer 2 gets instant cache hit
nip build myapp +production  # <1 second!

CI/CD Pipeline

- name: Build with NIP
  run: |
    nip cache remote config --url $CACHE_URL --enable
    nip build myapp  # First PR: 15 min, rest: <1 sec

🌟 What Makes NIP Special

Universal Package Management

Works with ANY package system - no vendor lock-in, unified interface.

Unprecedented Automation

Self-installs tools, self-updates, self-maintains cache. Zero configuration.

Lightning Fast

600x speedup with local cache, instant builds with remote cache sharing.

Enterprise-Grade

Secure authentication, automatic backups, easy rollback, comprehensive testing.

📊 Project Statistics

Current Implementation (Pre-Alpha)

  • Specifications: 15+ active specs, 3 archived, 1 future (UTCP)
  • Documentation: 250KB+ comprehensive design documents
  • Target Platforms: Linux, BSD, macOS, embedded/IoT
  • Target Package Systems: Nix, PKGSRC, Gentoo, Pacman, AUR
  • Architecture: Dual-tool (NIP + Nexus) with shared infrastructure

Planned for Alpha ("Weihnachtsmann")

  • Code: 10,000+ lines across modular architecture
  • Tests: 200+ tests with property-based testing
  • CLI Commands: 30+ commands across nip and nexus
  • Container Support: Containerd, Docker, Podman
  • Hash Algorithms: xxh3/xxh4 (performance), BLAKE3 (security)

Future (v1.0.0 - UTCP)

  • AI Autonomy: Full autonomous operations layer
  • Implementation: 95 tasks across 7 phases
  • Timeline: 9-13 months post-alpha
  • Scale: Support for 1000+ managed nodes

🤝 Contributing

See CONTRIBUTING.md for guidelines.

📝 License

See LICENSE for details.

🗺️ Roadmap

Current: Pre-Alpha

Building the foundation with core package management capabilities:

  • Universal package support (Nix, PKGSRC, Gentoo, Pacman)
  • Binary caching and remote cache sharing
  • Container isolation support
  • Automatic updates and self-maintenance
  • 🚧 Completing remaining core features

Next: Alpha ("Weihnachtsmann" Release)

Feature-complete package manager ready for production use:

  • 🎯 Comprehensive documentation and guides
  • 🎯 Multi-platform support (Linux, BSD, macOS)
  • 🎯 Enterprise-grade security and reliability

Future: v1.0.0 (UTCP - AI Autonomy Layer)

Revolutionary AI-driven autonomous operations:

  • 🔮 UTCP Protocol: Secure bidirectional AI communication
  • 🔮 Autonomous Monitoring: Real-time telemetry and health tracking
  • 🔮 Self-Healing: Automatic detection and correction of issues
  • 🔮 AI SysOps: Intelligent system management and optimization
  • 🔮 Zero-Touch Operations: Hands-free infrastructure management

UTCP represents the future of package management - where AI controllers autonomously maintain your systems, detect anomalies, heal configuration drift, and optimize performance without human intervention.

🎊 Acknowledgments

This project represents an ambitious vision for the future of system management:

  • Solid Foundation: Core package management infrastructure complete
  • Universal Compatibility: Works with all major package ecosystems
  • Battle-Tested: 150+ tests ensuring reliability
  • Future-Ready: Designed for AI-driven autonomous operations

Built with passion. Ready for production. Let's revolutionize package management! 🚀

NexusOS Toolkit - Where different ecosystems become one.