Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed README & Quickstart #149

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,15 @@ Note that this command references the URL of your flake, in this case `.#`,
together with the name of the system `hetzner-cloud`, as highlighted by the
comment in the sample flake.

This will configure and build the new NixOS server. Since the configurations are defined
in the flake, it will not create `/etc/nixos/configuration.nix`. If you need to make
changes to the configuration in future, you should make the changes in the flake, and
rebuild using the --flake option as shown below:

```
nixos-rebuild --flake <flake URL> switch
```

The [Quickstart Guide](./docs/quickstart.md) gives more information on how to
run **nixos-anywhere** in its simplest form. For more specific instructions to
suit individual requirements, see the [How To Guide](./docs/howtos.md).
Expand Down
9 changes: 9 additions & 0 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ directory containing the flake to update `flake.lock` before rerunning
nix flake update
```

The new server's configurations are defined in the flake. `nixos-anywhere` does not
create `etc/nixos/configuration.nix`since it expects the server to be administered
remotely. Any future changes to the configuration should be made to the flake, and
you would reference this flake when doing the rebuild:

```
nixos-rebuild --flake <URL to your flake> switch
```

For more information on different use cases of **nixos-anywhere** please refer
to the [How to Guide](./howtos.md), and for more technical information and
explanation of known error messages, refer to the
Expand Down