⚠️ NiCo works — I use it myself to manage my machines. Before it changes a file, it makes a checkpoint, checks that the result still says the same thing, and asks if the file was changed outside NiCo (see Safety nets below). What it cannot undo is a config that builds but locks you out — a deleted user or a lost password stays lost even in an older system generation. For a first try, letting NiCo work on a copy is still the calmest way.
NiCo is a local, browser-based GUI editor for NixOS configurations. It reads and writes your real .nix files directly — no database, no intermediate format, no hidden state. Everything it generates stays a normal Nix file that works without NiCo.
Built by a non-developer using Claude Code and OpenAI Codex as an experiment in AI-assisted development.
Feedback and discussion: https://discourse.nixos.org/t/nico-nixos-configurator/77117
Form fields on the left, the file they produce on the right — and a Nix brick in it, the part NiCo never touches.
Two more screenshots: the Validator and a rebuild
The Validator runs before every build. This one found a btrfs service on a machine that has no btrfs — the config builds, the service fails at start and takes the rebuild down with it.
nixos-rebuild from inside NiCo, with its phases and its live output — and the offer to create a checkpoint afterwards.
Most GUI config tools only allow what their forms cover. NiCo takes a different approach: anything it doesn't have a form field for, you write as a Nix brick — a free Nix section wrapped in marker comments that NiCo never touches. Form fields and hand-written Nix coexist in the same file. When importing an existing config, unrecognized sections are preserved as bricks automatically — nothing is ever discarded.
This has one important consequence: every time you save, NiCo regenerates the form-managed file completely from its current state instead of patching the existing text. Nix bricks are copied over unchanged. Your own comments outside of Nix bricks are collected into one Nix brick per file, imported-notes, each with a note on where it stood (before networking.hostName, inside services.pipewire, …); a comment directly above a statement that becomes a brick anyway moves into that brick with it. Blank lines and manual formatting outside of bricks are not preserved. Only content inside a Nix brick stays exactly as written, so put anything you want to keep verbatim into a brick.
NiCo edits real files, so it is built to never lose what is in them:
- Files changed outside NiCo – an editor, Syncthing,
git pull– or never saved by NiCo are not rewritten behind your back. NiCo recognises them by the hash in their first lines and asks first: restructure (a checkpoint of the current state comes first, a ZIP without Git), show differences, or open in text mode (the file stays as it is) - Check before saving – the new file must say the same as the old one and still be valid Nix; otherwise NiCo does not write it
- All or nothing – every file is written to a temporary file, flushed and renamed into place, so a reset or power cut leaves the complete old or new file; when one of several files fails, the others are put back
- Checkpoints – every restructure and import starts with a Git checkpoint; the time machine's Config side restores any of them
- Before every build – the Validator and the hardware check run on what is on disk; a critical finding stops the build
- System states – the time machine's System side switches back to an earlier generation, now or from the next start
- Reads only your config directory – anything else on this machine (users, disks, generations, free memory) only after you allow it, under Settings → NiCo → Read this machine or with the Allow button where it is needed; all off by default
Where the nets end: a config that builds but locks you out. Passwords live in /etc/shadow, not in a generation, so going back to an older system state does not bring a deleted user or a lost password back. Keep at least one older boot entry, and use test mode for risky changes.
- Import existing configs – from a directory or ZIP; you choose first: in text mode (NiCo works like an editor and rewrites nothing) or with the panel, where recognized options become form fields, everything else is preserved as Nix bricks, with automatic backups
- Split-panel editor – edit options on the left, see the resulting
.nixfile live on the right - Text mode – edit any file as plain Nix with syntax colours, search, matching brackets and unmatched ones marked; after saving, a line Nix cannot read is marked at the exact character. Ctrl+S saves in panel and text mode
- Nix-Brix – free Nix sections NiCo never modifies: create, rename, move, split them across hosts and modules
- Hardware check – a config that comes from somewhere else describes somebody else's disks, and a build from it looks for devices that do not exist. NiCo compares the
hardware-configuration.nixagainst the devices actually present on this machine and asks before anything is built — after an import, after a restore, and at start, because a config brought in withgit clonepasses no dialog at all. On a multi-host config only the file of the host that is this machine is ever touched - Validator – 43 configurable rules, run by itself before every build on the state written to disk. Hints and warnings never interrupt; a critical error brings its findings up instead of starting the build. It catches what Nix only reports halfway through a rebuild, and some things Nix never reports at all: a
system.stateVersionnewer than the installed release, a user the rebuild would create without a password or an SSH key, uid and gid collisions with accounts that already exist, a host without a boot loader, missing imports, duplicate attributes, btrfs maintenance on a machine without btrfs, a swapfile inside a snapshotted subvolume - Dry-run & rebuild – run
nixos-rebuild dry-build/switchdirectly from NiCo with live streaming output, and a report of the services that failed afterwards, each with the last lines of its journal. Only services that were healthy before that build are listed, so what a desktop carries around anyway stays out of it- Modes
switch,bootandtest–testactivates the new system without touching the boot menu, so a restart brings the old one back - Safe rebuild limits parallel builds (
--max-jobs,--cores) to save memory. Off by default; switched on, NiCo suggests values from this machine's free memory. With analysis before the rebuild switched on, NiCo shows the download size from the start and asks before a package is compiled from source, offering the safe rebuild - Show all Nix messages – off by default: the monitor shows phases, progress, warnings and errors instead of every file and store path Nix reports. The switch sits in the rebuild options and in the monitor itself, where it takes effect on the running build
- Modes
- Git integration – a checkpoint after every save and before every rebuild, restore to any earlier checkpoint ("time machine"), remote push, and a size guard that keeps an oversized file out of the history instead of blocking every future push
- System states (generations) – the time machine's System side, first of its two sides, lists this machine's generations – green runs, yellow comes at the next start; Use this system state switches to any of them – now or only from the next start. Your config files stay as they are; needs the permission to read system states
- Foreign-file guard – files that don't belong to the config are detected; decide per file whether git tracks or ignores them
- Flake & Home Manager support – multi-host flakes with channel and architecture selection; per-user Home Manager files
- Maintenance & snapshots – systemd timers for disk health (
smartd) and/tmpcleanup on any machine, plus btrfs auto-scrub and auto-balance where btrfs is actually mounted - Detach anytime – one click removes all NiCo markers and leaves a plain Nix config (with a ZIP backup)
- Help system – built-in help (German/English), tooltips, and wiki links
- Multi-language – UI in EN, DE, ES, FR, JA, RU, ZH
- Local only – binds to
127.0.0.1, no telemetry; the only network access is an optional read-only fetch of the public nixpkgs channel list
- NixOS
- A browser
- Git – recommended: without it, checkpoints are ZIP files and the time machine's Config side stays empty. A fresh NixOS install has none; add
programs.git.enable = true;to your config by hand and rebuild
Nothing else — Nix fetches what NiCo needs. Only the from-source route uses
shell.nix directly.
Just try it — this installs nothing and leaves nothing behind:
nix run github:DSpayreR6/nicoOn a fresh NixOS installation flakes are still disabled. Then use:
nix --extra-experimental-features 'nix-command flakes' run github:DSpayreR6/nicoNiCo picks a free port (default 8421) and opens your browser automatically.
There is a small menu that offers them all — try, install, update, and the same two for the development branch:
sh <(curl -sL https://raw.githubusercontent.com/DSpayreR6/nico/main/install.sh)It adds the flake flags above by itself when your machine needs them, and it prints every command in full before running it, so you can see what it does and type it yourself next time. Read it first if you prefer — it is a single short shell script:
curl -sL https://raw.githubusercontent.com/DSpayreR6/nico/main/install.sh | lessnix profile install github:DSpayreR6/nicoThis gives you the nico command and an entry in your application menu.
Update it later with nix profile upgrade nico, or with Update NiCo in the
help menu.
Nix 2.34 renamed nix profile install to nix profile add. Both still work —
the old name only prints a deprecation warning — but older Nix versions do not
know add yet, which is why the command above uses install. The install
menu picks whichever name your Nix has.
Or declare it in your own flake, so it travels with your config to your other machines:
{
inputs.nico.url = "github:DSpayreR6/nico";
outputs = { self, nixpkgs, nico, ... }: {
nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
{ environment.systemPackages = [ nico.packages.x86_64-linux.default ]; }
];
};
};
}Update it with nix flake update nico and a rebuild — NiCo can do that rebuild
for you.
You do not have to choose between a test config and your real one. NiCo writes
only inside the directory you point it at, so you can work on a copy of your
real config and keep the original untouched. (One exception, and it exists for
your benefit: before an import NiCo copies the hardware-configuration.nix
files of the config directory to ~/.config/nico/hw-stash/, so it can offer
them back if the imported config brings a foreign one.)
- Install nothing.
nix run github:DSpayreR6/nicoleaves nothing behind. - Give NiCo a new, empty directory —
~/nico-test, say. Type the path in the setup dialog; it does not have to exist yet. - Import your own config from
/etc/nixos(button Look in /etc/nixos), from a directory, or from a ZIP. Your original is never written to. NiCo first asks how you want to edit: in text mode the copy stays byte for byte as it was, and NiCo works like an editor. With the panel the copy is rewritten straight away: formatting outside a Nix-Brick is lost there, your comments are collected in the Nix-Brickimported-notes— and your settings are kept, anything NiCo does not recognise becomes a Nix-Brick. - Build with
testinstead ofswitch. Pick it in the options dialog that appears before the rebuild.testactivates the new system right away but leaves the bootloader alone, so a reboot brings your old system back. That is the whole trick: you see the result without betting your boot entry on it. - The way back is a rebuild from your real config directory, simply a
reboot after a
testbuild, or the previous system state on the time machine's System side.
Three things a rebuild from the old config does not undo, because they are not part of a NixOS generation. Worth knowing before you start:
- User and group accounts. A changed
uid/gid, or a user who ends up without a password or SSH key, lands in/etc/passwd,/etc/shadowand/etc/group— mutable state that booting an older generation does not restore. The Validator warns about all of these before a build. - Service data after a migration. If the build brings a newer Paperless or PostgreSQL, their database migrates with it. Rolling the config back does not roll the data back.
- The EFI partition, if you change
boot.loader.*itself — swapping systemd-boot for GRUB, a differentefiSysMountPoint. Leave that section alone and you are safe: systemd-boot keeps your older generations as boot entries, so you can always pick one at startup.
Everything else is ordinary NixOS: the build is atomic, and a generation you do not like is one reboot or one rebuild away.
For development, or to read the code before running it:
git clone https://github.com/DSpayreR6/nico.git
cd nico
./start.shEvery command above gives you the released version from the main branch.
Work in progress lives on dev and carries a -dev version number:
nix run github:DSpayreR6/nico/dev --refreshUse it to try a fix before it is released, or when a bug report asks you to.
It is not meant for everyday use — it may change or break at any time, and the
--refresh is needed because Nix otherwise serves a cached copy of the branch.
NiCo manages my own machines. Every change runs through a headless roundtrip over 18 real-world configurations taken from public repositories — imported through the same paths the app uses, saved back, and checked by an independent Nix parser that the files still parse, no setting was lost or duplicated and every comment is kept — plus more than 70 test suites for the Validator, the git layer and the import paths, and browser tests for the parts that only show in a real browser. Releases are tried in a virtual machine first, by importing a config from another machine and booting the result.
That said, it is still a young tool and the edges show. If something goes wrong, the config is what matters, not NiCo — which is why there is a checkpoint before every import and every save, and a one-click way out that leaves plain Nix behind (see Safety nets).
Contributions, bug reports, and feedback are welcome.
MIT