Nix-darwin: `darwin-rebuild: command not found`

After doing a fresh install of nix-darwin with the lix installer as recommended in the readme, both darwin-rebuild nor sudo darwin-rebuild returns command not found

~ % curl -sSf -L https://install.lix.systems/lix | sh -s -- install
info: downloading installer
 INFO nix-installer v3.95.0
`lix-installer` needs to run as `root`, attempting to escalate now via `sudo`...
 INFO nix-installer v3.95.0


Welcome to the Lix installer! Just a couple of quick questions.

Flakes are an experimental feature, but widely used in the community.
You can change this later in `/etc/nix/nix.conf`.

Enable flakes? ([Y]es/[n]o): y

QUICK NOTE: we've enabled the experimental nix command for you!
Be aware that commands starting with `nix ` such as `nix build` may change syntax.

Lix install plan (v3.95.0)
Planner: macos

Configured settings:
* nix_package_url: {"Url":"https://releases.lix.systems/lix/lix-2.95.1/lix-2.95.1-aarch64-darwin.tar.xz"}

Planned actions:
* Create an encrypted APFS volume `Nix Store` for Nix on `disk2` and add it to `/etc/fstab` mounting on `/nix`
* Fetch `https://releases.lix.systems/lix/lix-2.95.1/lix-2.95.1-aarch64-darwin.tar.xz` to `/nix/temp-install-dir`
* Create a directory tree in `/nix`
* Synchronize /nix/var ownership
* Move the downloaded Nix into `/nix`
* Synchronize /nix/store ownership
* Create build users (UID 351-382) and group (GID 350)
* Configure Time Machine exclusions
* Setup the default Nix profile
* Place the Nix configuration in `/etc/nix/nix.conf`
* Configure the shell profiles
* Configuring zsh to support using Nix in non-interactive shells
* Unload, then recreate a `launchctl` plist to put Nix into your PATH
* Configure Nix daemon related settings with launchctl
* Remove directory `/nix/temp-install-dir`


Proceed? ([Y]es/[n]o/[e]xplain): y
 INFO Step: Create an encrypted APFS volume `Nix Store` for Nix on `disk2` and add it to `/etc/fstab` mounting on `/nix`
 INFO Step: Provision Nix
 INFO Step: Create build users (UID 351-382) and group (GID 350)
 INFO Step: Configure Time Machine exclusions
 INFO Step: Configure Nix
 INFO Step: Configuring zsh to support using Nix in non-interactive shells
 INFO Step: Unload, then recreate a `launchctl` plist to put Nix into your PATH
 INFO Step: Configure Nix daemon related settings with launchctl
 INFO Step: Remove directory `/nix/temp-install-dir`
 WARN SelfTest([ShellFailed { shell: Sh, command: "\"sh\" \"-lc\" \"exec nix build --option substitute false --option post-build-hook '' --no-link --expr 'derivation { name = \\\"self-test-sh-1774473830465\\\"; system = \\\"aarch64-darwin\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }'\"", output: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "error:\n       … while evaluating an expression to select 'drvPath' on it\n         at «internal»:1:552:\n       … while evaluating strict\n         at «internal»:1:552:\n       (stack trace truncated; use '--show-trace' to show the full trace)\n\n       error: could not connect to any lix socket (tried /nix/var/nix/daemon-socket/socket)\n\n       note: trace involved the following derivations:\n       derivation 'self-test-sh-1774473830465'\n" } }])
Nix was installed successfully!
To get started using Nix, open a new shell or run `. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh`

this comment pointed out that I missed a step: “Step 2. Installing nix-darwin”, and I ran sudo nix run nix-darwin/master#darwin-rebuild -- switch.