Skip to content

Force Reinstall

Force Panix to bootstrap over an already running NixOS system, wiping and reinstalling it from scratch.

The flags plug into the regular bootstrap flow; kexec settings follow Kexec and connection details follow Bootstrap SSH.

Fragment: nest under fleet.flakes.<flake>.installables.<type>.<name>.machines.

machines:
existing-nixos:
ssh:
hostname: 192.168.1.100
bootstrap:
allow_destructive_actions: true # Required for force_bootstrap
force_bootstrap: true # Force bootstrap even if NixOS detected
force_bootstrap_kexec: true # Use kexec to boot into installer first
kexec:
ssh_port: 22 # SSH port for kexec installer (default: 22)
OptionDescription
allow_destructive_actionsRequired to enable force bootstrap. Acknowledges destructive operations.
force_bootstrapBootstrap even if the machine is already running NixOS.
force_bootstrap_kexecUse kexec to boot into a fresh installer environment before reinstalling.