# Nixos-rebuild-ng: a nixos-rebuild rewrite

**URL:** https://discourse.nixos.org/t/nixos-rebuild-ng-a-nixos-rebuild-rewrite/55606
**Category:** Announcements
**Created:** [November 6, 2024, 3:52pm UTC](https://discourse.nixos.org/t/nixos-rebuild-ng-a-nixos-rebuild-rewrite/55606 "2024-11-06T15:52:39Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![k0kada](https://discourse.nixos.org/user_avatar/discourse.nixos.org/k0kada/32/12502_2.png) [@k0kada](https://discourse.nixos.org/u/k0kada)
#### Post date: [November 16, 2024, 2:13pm UTC](https://discourse.nixos.org/t/nixos-rebuild-ng-a-nixos-rebuild-rewrite/55606/17 "2024-11-16T14:13:09Z")

</div>

The first PR is merged 🎉: [nixos-rebuild-ng: init by thiagokokada · Pull Request #354029 · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/pull/354029).

Inviting people to test once [this hit the unstable branches](https://nixpk.gs/pr-tracker.html?pr=354029). It should be as easy as adding `environment.systemPackages = [pkgs.nixos-rebuild-ng];` to your configuration. Please also read the [README](https://github.com/NixOS/nixpkgs/blob/a895a13b5404b4059d51a06d190249e3dcb1a45c/pkgs/by-name/ni/nixos-rebuild-ng/README.md) before starting.

It would be nice to have both Flake and classic Nix users as testers, especially the later because I have no system using classic Nix.

I am also starting to work in the second PR: [nixos-rebuild-ng: improvements by thiagokokada · Pull Request #356468 · NixOS/nixpkgs · GitHub](https://github.com/NixOS/nixpkgs/pull/356468). My objective here is to implement the remaining missing features, especially the `--target-host` and `--build-host` and the `_NIXOS_REBUILD_EXEC`. After finishing those 2 features I think all features will be implemented and it will be mostly figuring out how to test this and rollout for users gradually.

It would be nice to have this ready as a opt-in for 25.05 and having this as the default for 25.11, targeting a removal of `nixos-rebuild` in 26.05, but let’s see.

---

_[View the full topic](https://discourse.nixos.org/t/nixos-rebuild-ng-a-nixos-rebuild-rewrite/55606)._
