From 69443d692920ff11b196980fb984b03ef1bcb2d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 7 Jun 2023 07:11:27 +0200 Subject: [PATCH] make usage formatting more consistent --- docs/reference.md | 14 +++++++------- src/nixos-anywhere.sh | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/reference.md b/docs/reference.md index 2b1c53d..6e8a054 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -19,7 +19,7 @@ TODO: Populate this guide properly ``` -Usage: nixos-anywhere [options] ssh-host +Usage: nixos-anywhere [options] Options: @@ -29,27 +29,27 @@ Options: selects which SSH private key file to use. * -L, --print-build-logs print full build logs -* -s, --store-paths +* -s, --store-paths set the store paths to the disko-script and nixos-system directly if this is give, flake is not needed * --no-reboot do not reboot after installation, allowing further customization of the target installation. -* --kexec url +* --kexec use another kexec tarball to bootstrap NixOS * --stop-after-disko exit after disko formating, you can then proceed to install manually or some other way -* --extra-files files +* --extra-files files to copy into the new nixos installation -* --disk-encryption-keys remote_path local_path +* --disk-encryption-keys copy the contents of the file or pipe in local_path to remote_path in the installer environment, after kexec but before installation. Can be repeated. * --no-substitute-on-destination disable passing --substitute-on-destination to nix-copy * --debug enable debug output -* --option KEY VALUE +* --option nix option to pass to every nix related command -* --from store-uri +* --from URL of the source Nix store to copy the nixos and disko closure from * --build-on-remote build the closure on the remote machine instead of locally and copy-closuring it diff --git a/src/nixos-anywhere.sh b/src/nixos-anywhere.sh index 685d094..7c45513 100755 --- a/src/nixos-anywhere.sh +++ b/src/nixos-anywhere.sh @@ -3,7 +3,7 @@ set -euo pipefail showUsage() { cat < Options: @@ -13,27 +13,27 @@ Options: selects which SSH private key file to use. * -L, --print-build-logs print full build logs -* -s, --store-paths +* -s, --store-paths set the store paths to the disko-script and nixos-system directly if this is give, flake is not needed * --no-reboot do not reboot after installation, allowing further customization of the target installation. -* --kexec url +* --kexec use another kexec tarball to bootstrap NixOS * --stop-after-disko exit after disko formating, you can then proceed to install manually or some other way -* --extra-files files +* --extra-files files to copy into the new nixos installation -* --disk-encryption-keys remote_path local_path +* --disk-encryption-keys copy the contents of the file or pipe in local_path to remote_path in the installer environment, after kexec but before installation. Can be repeated. * --no-substitute-on-destination disable passing --substitute-on-destination to nix-copy * --debug enable debug output -* --option KEY VALUE +* --option nix option to pass to every nix related command -* --from store-uri +* --from URL of the source Nix store to copy the nixos and disko closure from * --build-on-remote build the closure on the remote machine instead of locally and copy-closuring it