From 78ab7b0b807caca391af225c78c7f39ae6fa2f6b Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 1 Mar 2023 11:33:15 +0000 Subject: [PATCH] readme: document nixos-rebuild remote deployment --- readme.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/readme.md b/readme.md index 6cd91eeb..3ea55454 100644 --- a/readme.md +++ b/readme.md @@ -32,6 +32,13 @@ this can then be `dd`'d onto a disk and directly booted from a EFI system. there's some post-processing to do before running a rebuild on the deployed system (deploying ssh keys, optionally changing fs UUIDs, etc). refer to flake.nix for more details. +## remote deployment + +some of my systems support cross compilation (i.e. building from x86-64 for an aarch64 host without using emulation). +- `nixos-rebuild --flake '.#moby-cross' build` +- `sudo nix sign-paths -r -k ./nix-serve.key $(readlink ./result)` (key comes from e.g. secrets/desko.yaml) +- `nixos-rebuild --flake '.#moby-cross' switch --target-host colin@moby --use-remote-sudo` + ## building packages build anything with