3 ms·
Back up all data, especially my various nix configuration files (`configuration.nix`, `home.nix`, `flake.nix`es, etc.`). Wipe the LUKS header (`cryptsetup eras
by SAI_Peregrinus 4y ago
Back up all data, especially my various nix configuration files (`configuration.nix`, `home.nix`, `flake.nix`es, etc.`).
Wipe the LUKS header (`cryptsetup erase <device> && wipefs -a <device>`).
Run the default NixOS setup.
When I get the machine back, reformat & re-install. Copy back the config, reboot to my working old system.
I've got an "erase your darlings" style setup, so everything outside /home and /persist gets erased every boot anyway, and I test my backups so "just wipe it and restore once it's back" is pretty low risk.