···66import { Aside } from '@astrojs/starlight/components';
778899-As always, start a new empty commit so you can always revert to safe state.
1010-119Suppose you have a flake that looks like:
12101311```nix
···2523## Boostraping flake-file
26242725First, move your `flake.nix` file as `flake-file.nix`.
2626+2727+```shell
2828+mv flake.nix flake-file.nix
2929+```
28302931And now, the bootstrapping magic step:
3032···160162nix run .#write-flake # whenever you need to regen flake.nix
161163162164nix flake check # will make sure your flake.nix is up-to-date
163163-```165165+```