Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm authored Jul 11, 2024
1 parent 617b51d commit 37c6c14
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,28 @@ Shell scripts are built from the flake at <https://github.com/joinemm/bin>

For a given `host`

```
```sh
nixos-rebuild switch --flake .#$HOST
```

## Installing to remote servers

The included script will install the system, and add `ssh_host_ed25519_key` specified in `secrets.yaml`

```
```sh
./scripts/install .#$HOST $REMOTE_IP --secrets hosts/$HOST/secrets.yaml
```

## SD card images

The raspberry pi config can be built as flashable sd card image for initial installation:

```
```sh
nix build .#nixosConfigurations.archimedes.config.system.build.sdImage

# check sd card device
lsblk
# flash to sd card
lsblk # check sd card device
sudo dd if=result/nixos-sd-image-xxx-aarch64-linux.img of=/dev/sda bs=4M conv=fsync status=progress
```

Expand Down

0 comments on commit 37c6c14

Please sign in to comment.