From 37c6c144ef767d21a1607e057a05067272380509 Mon Sep 17 00:00:00 2001 From: Joonas Rautiola Date: Thu, 11 Jul 2024 18:53:21 +0300 Subject: [PATCH] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6b021f0..e3f307d 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Shell scripts are built from the flake at For a given `host` -``` +```sh nixos-rebuild switch --flake .#$HOST ``` @@ -29,7 +29,7 @@ nixos-rebuild switch --flake .#$HOST 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 ``` @@ -37,11 +37,12 @@ The included script will install the system, and add `ssh_host_ed25519_key` spec 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 ```