Skip to content

Commit 39ddfea

Browse files
Update README.md
Future rebuilds should use the flake, not configuration.nix
1 parent 22a2964 commit 39ddfea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,15 @@ Note that this command references the URL of your flake, in this case `.#`,
199199
together with the name of the system `hetzner-cloud`, as highlighted by the
200200
comment in the sample flake.
201201

202+
This will configure and build the new NixOS server. Since the configurations are defined
203+
in the flake, it will not create `/etc/nixos/configuration.nix`. If you need to make
204+
changes to the configuration in future, you should make the changes in the flake, and
205+
rebuild using the --flake option as shown below:
206+
207+
```
208+
nixos-rebuild --flake <flake URL> switch
209+
```
210+
202211
The [Quickstart Guide](./docs/quickstart.md) gives more information on how to
203212
run **nixos-anywhere** in its simplest form. For more specific instructions to
204213
suit individual requirements, see the [How To Guide](./docs/howtos.md).

0 commit comments

Comments
 (0)