Skip to content

Commit 69443d6

Browse files
committed
make usage formatting more consistent
1 parent 7c8b2dd commit 69443d6

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

docs/reference.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ TODO: Populate this guide properly
1919
<!-- `$ bash ./src/nixos-anywhere.sh --help` -->
2020

2121
```
22-
Usage: nixos-anywhere [options] ssh-host
22+
Usage: nixos-anywhere [options] <ssh-host>
2323
2424
Options:
2525
@@ -29,27 +29,27 @@ Options:
2929
selects which SSH private key file to use.
3030
* -L, --print-build-logs
3131
print full build logs
32-
* -s, --store-paths
32+
* -s, --store-paths <disko-script> <nixos-system>
3333
set the store paths to the disko-script and nixos-system directly
3434
if this is give, flake is not needed
3535
* --no-reboot
3636
do not reboot after installation, allowing further customization of the target installation.
37-
* --kexec url
37+
* --kexec <url>
3838
use another kexec tarball to bootstrap NixOS
3939
* --stop-after-disko
4040
exit after disko formating, you can then proceed to install manually or some other way
41-
* --extra-files files
41+
* --extra-files <file...>
4242
files to copy into the new nixos installation
43-
* --disk-encryption-keys remote_path local_path
43+
* --disk-encryption-keys <remote_path> <local_path>
4444
copy the contents of the file or pipe in local_path to remote_path in the installer environment,
4545
after kexec but before installation. Can be repeated.
4646
* --no-substitute-on-destination
4747
disable passing --substitute-on-destination to nix-copy
4848
* --debug
4949
enable debug output
50-
* --option KEY VALUE
50+
* --option <key> <value>
5151
nix option to pass to every nix related command
52-
* --from store-uri
52+
* --from <store-uri>
5353
URL of the source Nix store to copy the nixos and disko closure from
5454
* --build-on-remote
5555
build the closure on the remote machine instead of locally and copy-closuring it

src/nixos-anywhere.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euo pipefail
33

44
showUsage() {
55
cat <<USAGE
6-
Usage: nixos-anywhere [options] ssh-host
6+
Usage: nixos-anywhere [options] <ssh-host>
77
88
Options:
99
@@ -13,27 +13,27 @@ Options:
1313
selects which SSH private key file to use.
1414
* -L, --print-build-logs
1515
print full build logs
16-
* -s, --store-paths
16+
* -s, --store-paths <disko-script> <nixos-system>
1717
set the store paths to the disko-script and nixos-system directly
1818
if this is give, flake is not needed
1919
* --no-reboot
2020
do not reboot after installation, allowing further customization of the target installation.
21-
* --kexec url
21+
* --kexec <url>
2222
use another kexec tarball to bootstrap NixOS
2323
* --stop-after-disko
2424
exit after disko formating, you can then proceed to install manually or some other way
25-
* --extra-files files
25+
* --extra-files <file...>
2626
files to copy into the new nixos installation
27-
* --disk-encryption-keys remote_path local_path
27+
* --disk-encryption-keys <remote_path> <local_path>
2828
copy the contents of the file or pipe in local_path to remote_path in the installer environment,
2929
after kexec but before installation. Can be repeated.
3030
* --no-substitute-on-destination
3131
disable passing --substitute-on-destination to nix-copy
3232
* --debug
3333
enable debug output
34-
* --option KEY VALUE
34+
* --option <key> <value>
3535
nix option to pass to every nix related command
36-
* --from store-uri
36+
* --from <store-uri>
3737
URL of the source Nix store to copy the nixos and disko closure from
3838
* --build-on-remote
3939
build the closure on the remote machine instead of locally and copy-closuring it

0 commit comments

Comments
 (0)