Skip to content

Existing NixOS host

If your target machine already runs NixOS, applying hearth is a single rebuild against this flake.

1. Get the flake

Clone the repo onto the host, or reference it as a flake input from your own configuration.

Terminal window
git clone https://github.com/EricFinland/hearth
cd hearth

2. Add your SSH key

Edit nixos/hosts/workstation.nix and add your public key so you keep access after the rebuild:

hearth.adminKeys = [ "ssh-ed25519 AAAAC3Nz... you@laptop" ];

3. Rebuild

Apply the workstation configuration:

Terminal window
sudo nixos-rebuild switch --flake .#workstation

This creates a new generation. If anything breaks, roll back with sudo nixos-rebuild switch --rollback or pick a previous generation from the bootloader.

4. Verify

Terminal window
hearth-status

You should see Ollama active and the recent-runs section.