mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-10-06 12:48:07 +03:00
README: extend
This commit is contained in:
parent
31a2d3fd99
commit
ef1e3ea2c2
16
README.md
16
README.md
@ -2,7 +2,19 @@
|
||||
|
||||
## Usage
|
||||
Needs a repo with your configurations with flakes. for a minimal example checkout https://github.com/Lassulus/flakes-testing.
|
||||
afterwards you can just run:
|
||||
|
||||
Your NixOS configuration will also need a [disko](https://github.com/nix-community/disko) configuration as we can see in
|
||||
our [example](https://github.com/Lassulus/flakes-testing/blob/216b3023c01581359599f5bc9ae48eeee2617627/flake.nix#L13)
|
||||
|
||||
Afterwards you can just run:
|
||||
|
||||
```
|
||||
./nixos-remote root@yourip --flake github:your-user/your-repo#your-system
|
||||
./nixos-remote root@yourip --flake github:your-user/your-repo#your-system
|
||||
```
|
||||
|
||||
The parameter passed to `--flake` should point to your nixos configuration
|
||||
exposed in your flake (`nixosConfigurations.your-system` in the example above).
|
||||
|
||||
Currently nixos-remote requires that the network of the machine, offers DHCP for
|
||||
dynamic address configuration or else the booted nixos will not have any
|
||||
network set up.
|
||||
|
Loading…
Reference in New Issue
Block a user