You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: print.html
+5-7
Original file line number
Diff line number
Diff line change
@@ -316,13 +316,11 @@ <h3 id="5-lock-your-flake"><a class="header" href="#5-lock-your-flake">5. Lock y
316
316
simply reference your local directory when you run <strong>nixos-anywhere</strong>. This
317
317
example uses a local directory on the source machine.</p>
318
318
<h3id="6-connectivity-to-the-target-machine"><aclass="header" href="#6-connectivity-to-the-target-machine">6. Connectivity to the Target Machine</a></h3>
319
-
<p>On the target machine, make sure you have access as root via ssh by adding your
320
-
SSH key to the file <code>authorized_keys</code> in the directory <code>/root/.ssh</code></p>
321
-
<p>Optionally, bootstrapping can also be performed through password login. For
322
-
example through the <code>image-installer-*</code> provided by
323
-
<code>nix-community/nixos-images</code>. Assign your password to the <code>SSH_PASS</code> environment
324
-
variable and specify <code>--env-password</code> as an additional command line option. This
325
-
will provide <code>ssh-copy-id</code> with the required password.</p>
319
+
<p><strong>nixos-anywhere</strong> will create a temporary SSH key to use for the installation.
320
+
If your SSH key is not found, you will be asked for your password. If you are
321
+
using a non-root user, you must have access to sudo without a password. To avoid
322
+
SSH password prompts, set the <code>SSHPASS</code> environment variable to your password
323
+
and add <code>--env-password</code> to the <code>nixos-anywhere</code> command.</p>
326
324
<h3id="7-optional-test-your-nixos-and-disko-configuration"><aclass="header" href="#7-optional-test-your-nixos-and-disko-configuration">7. (Optional) Test your NixOS and Disko configuration</a></h3>
327
325
<p>The following command will automatically test your nixos configuration and run
Copy file name to clipboardexpand all lines: quickstart.html
+5-7
Original file line number
Diff line number
Diff line change
@@ -261,13 +261,11 @@ <h3 id="5-lock-your-flake"><a class="header" href="#5-lock-your-flake">5. Lock y
261
261
simply reference your local directory when you run <strong>nixos-anywhere</strong>. This
262
262
example uses a local directory on the source machine.</p>
263
263
<h3id="6-connectivity-to-the-target-machine"><aclass="header" href="#6-connectivity-to-the-target-machine">6. Connectivity to the Target Machine</a></h3>
264
-
<p>On the target machine, make sure you have access as root via ssh by adding your
265
-
SSH key to the file <code>authorized_keys</code> in the directory <code>/root/.ssh</code></p>
266
-
<p>Optionally, bootstrapping can also be performed through password login. For
267
-
example through the <code>image-installer-*</code> provided by
268
-
<code>nix-community/nixos-images</code>. Assign your password to the <code>SSH_PASS</code> environment
269
-
variable and specify <code>--env-password</code> as an additional command line option. This
270
-
will provide <code>ssh-copy-id</code> with the required password.</p>
264
+
<p><strong>nixos-anywhere</strong> will create a temporary SSH key to use for the installation.
265
+
If your SSH key is not found, you will be asked for your password. If you are
266
+
using a non-root user, you must have access to sudo without a password. To avoid
267
+
SSH password prompts, set the <code>SSHPASS</code> environment variable to your password
268
+
and add <code>--env-password</code> to the <code>nixos-anywhere</code> command.</p>
271
269
<h3id="7-optional-test-your-nixos-and-disko-configuration"><aclass="header" href="#7-optional-test-your-nixos-and-disko-configuration">7. (Optional) Test your NixOS and Disko configuration</a></h3>
272
270
<p>The following command will automatically test your nixos configuration and run
0 commit comments