What is the status of nixos-infect? Is there an alternative project with the same scope?

I added a PR for nixos-infect that adds support for (at least some) RHEL-based distros. I noticed that there are quite a few stale PRs in the repo. Is nixos-infect known to be actively maintained or is there a similarly scoped project that is considered more appropriate for converting existing Linux servers to NixOS?

To be clear, I think nixos-infect has been great for my purpose, so no shade on the project!

1 Like

I personally use nixos-anywhere, which is great as it integrates well with facter and disko.

2 Likes

I recently stumbled upon nixos-bite. It seems to only support Debian-based systems for now though.

Thanks for the link, nixos-bite looks interesting.

Thanks! I need to do an experiment with Disko and nixos-anywhere at some point.

The PR has been merged with master. nixos-infect now supports RHEL-based distros too.

1 Like

I’m in the same boat and ended up forking it: nixos-reinfect.

The fork is explicitly oriented around predictable, testable conversions rather than one-shot manual runs, what I thought was critically missing in the original repo. PRs and issue reports welcome.

I plan to upstream the CI workflows as well — they’re more useful to everyone if they land in the original repo.

For the time being, I’m using this fork for:

  • Active CI: scheduled runs on real VPS instances, so regressions are caught automatically and the test matrix in the README is always current. Currently only Hetzner and DigitalOcean are supported, but I intend on expanding it.

  • Bug fixes: I merged a bugfix to allow running the script on non-EFI systems and fixed several shellcheck warnings in the process, caught by the lint workflow.

It’s also wrapped by an Ansible role if anyone wants to integrate VPS conversion into existing Ansible workflows without shelling out manually. This is actually how I started, because I wanted to convert my self-hosted servers to NixOS, what had been failing because of the non-EFI bug I mentioned above.

1 Like