Skip to content

About

OpenWrt buildroot, CoW, fully reproducible. Release are rebased onto the latest applicable openwrt main branch.

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

OpenWrt NSS Builder OpenWrt NSS Build

A modern, reproducible OpenWrt build environment powered by Nix. No root required.

nix develop github:mingww64/openwrt-nss-builder --command build-nss-image --profile mr7350

Quick Start

You can run this builder without cloning the repo. To customize, drop these in your current directory:

  • 📂 ./patches/ - Auto-applied .patch files.
  • 📝 ./packages.txt - Custom package list.1
  • ⚙️ ./config.txt - Extra configuration fragments.1

For local development:

git clone https://github.com/mingww64/openwrt-nss-builder && cd openwrt-nss-builder
nix develop  # Mounts FUSE environment
build-nss-image --profile mr7350

Tip

check config-nss.seed available profiles.

Build Flags

  • --profile <name>: Fuzzy search for device (e.g., mr7350, ipq60xx).
  • --menuconfig: Classic make menuconfig UI.
  • --sync-packages: Sync packages from a live router via SSH.

Maintenance

The environment uses fuse-overlayfs to create a writable view of pinned Nix inputs.

  • Update: nix flake update && nix develop (Detects changes and remounts automatically).
  • Clean Mounts: unmount-nss-mounts (Tears down FUSE, keeps build artifacts).
  • Full Wipe: clean-nss-mounts (Wipes everything for a fresh start).

First Boot

  • Default LuCI Credentials: admin / passwd
  • Cloudflare WARP: A free WARP account is automatically registered on the fly to provision a WireGuard interface. Policy-Based Routing (PBR) rules will dynamically toggle based on the tunnel's connectivity to ensure seamless fallback.

Footnotes

  1. Profile-specific packages and config fragments could be enabled by appending profile name to the file name. For example, ./packages-mr7350.txt and ./config-mr7350.txt. ↩ ↩2

About

OpenWrt buildroot, CoW, fully reproducible. Release are rebased onto the latest applicable openwrt main branch.

Topics

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages