Announcing NixOSBuilder: a browser-based wizard that generates a flake-based NixOS config

Hi all,

I’ve put together a small tool called NixOSBuilder and I’d like some feedback from people who know NixOS better than I do.

https://nixosbuilder.sincorchetes.tech

What it is

A wizard in the style of the Calamares or Fedora installers. You go through screens (locale, desktop, profile and apps, disks, boot, network, user, Home Manager) and it produces a flake with configuration.nix, home.nix and, if you want it, a disko layout. There’s also a “technical view” with all the options on one page.

What it does

  • Flakes plus Home Manager, for 25.11, 26.05, and unstable.
  • Package search against the nixpkgs index, and a module search for Home Manager. If you paste your own HM module, it checks the option paths against the option index and tells you which ones don’t exist.
  • A partition designer: paste the output of lsblk , and it draws the disk. It can generate a disko config or, without disko, a plain partitioning script plus filesystems.nix. LUKS, LVM, btrfs and ZFS are covered. ZFS only works through disko.
  • Optional Secure Boot with lanzaboote.

How it works

It’s a static site (Astro and Svelte). There is no backend, and nothing is sent anywhere. Encryption passphrases are never collected: disko and cryptsetup ask for them interactively when you format.

The output is deterministic, and the repo’s tests run nix eval on generated configurations for each channel, plus snapshot tests on the generated files. That’s no guarantee that a configuration is what you want, only that it evaluates.

Things you should know

  • It’s an unofficial community project and has no connection to the NixOS Foundation.
  • I built it with a lot of help from an AI assistant (Claude). I reviewed and tested the result, but you should read what it generates before applying it.
  • It’s a generator, so it will always lag behind what people do by hand. It aims at a sensible default setup, not at covering every option.

It’s licensed under GPLv3 or later. If you try it, I’d particularly like to hear about generated configs that fail to evaluate, options that are wrong or outdated, and anything in the wizard that would confuse a newcomer. Issues and PRs on GitHub are welcome too.

Thanks for reading.

Helped to translate this text with IA
4 Likes

Why not have it generate system.nix setups? The kinds of users in need of tools like this tend to be newcomers—& system.nix offers a stable approach to NixOS configuration which is probably better suited to that audience.

7 Likes

Fair point, and you’ve persuaded me. I’ve just changed the simple wizard to generate the traditional setup: channels, a plainconfiguration.nix, and Home Manager as a NixOS module from its channel. That means one nixos-rebuild switch applies both the system and the user config, with no flakes to understand.

Flakes, disko and the rest stay in the technical view for people who want them. Secure Boot with lanzaboote works in both modes.

One question: by system.nix do you mean the classic configuration.nix, or something else? If it’s something different, I’d like to know before I assume wrong.

Thanks for the push; this is a better default for newcomers.

1 Like

No, system.nix is a somewhat new entrypoint, an alternative to configuration.nix and flake.nix. It’s less magical than configuration.nix (which implicitly will take that file and instantiate a NixOS configuration with it), but also doesn’t tie you into flakes. So it both teaches you how things actually work and lets you use whatever pinning solution you want for your dependencies - the best of both worlds between using the “classic” entrypoint and having your config be only exposed as a flake.

As an aside, personally I think no newcomer should be exposed to channels and nix.channel.enable should default to false, but alas.

5 Likes

Disko still exposes a package & a module that doesn’t require flakes (sadly, no overlay… maybe I should open a PR sometime since it should be trivial). So it can be used regardless.

1 Like

I wish we had better terms, so to be clear… no exposure to nix-channel command we agree on, but using Nixpkgs channels (the Zstandard/LZMA archives from Hydra and/or the Chinese mirrors) is good / preferred to save data.

2 Likes

The Claude-coded commit is configuration.nix, not system.nix

Nice. I’ve spoken to a few people who ended up liking NixOS, but nearly gave up at seeing the NixOS installation manual. This seems smooth!

https://trynix.dev might even allow them to test the machine in the browser, and maybe even download an ISO that boots to a single “Install your customised config?” prompt.