Change:
1: 2: 3: Create virtual machine and run with nixos iso. SSH Daemon doesn't work. It's loaded, but not active. 4: But it's working with ... and show this warnings: System: (Hummingbird) Nix version: nix-env (Nix) 1.11.11 Nixpkgs version: Sandboxing enabled: build-use-sandbox = false
And why is it wrong? It's even documented: (7.)
He provided , so it should work without setting a root password. We even have doing exactly that, but without the installer CD , so I'm guessing the real issue here could be the latter.
The actual problem here is , so adding the following line in your configuration should fix that: For the installer image it makes sense to remove from , because it allows the user to optionally enable at runtime via .
To be clear, I meant the fact that you have to start sshd manually on an installation system. I can see nothing wrong about that. (Perhaps I misunderstood.)
No, I was wrong about that, I only read point 7 regarding setting the root passwd.
This example should work:
The warnings when using can be ignored. I would say it is not a bug, but intended behavior.
, maybe not a bug, but an error.
, thank you. work very well without any problems.
Close as answered?
I don't know. is it fixed in documentation?
Probably not.
works flawlessly.
A fix for this is in progress at .

Discussion:
creating the image in the first place. As a result it allows users to edit and rebuild the live-system. </para> <ins> <para> On images where the installation media also becomes an installation target, copying over <literal>configuration.nix</literal> should be disabled by setting <literal>installer.cloneConfig</literal> to <literal>false</literal>. This is already done in <literal>sd-image.nix</literal>. </para> </ins> </section>

<title>Installation Device</title> <para> <del> Provides a basic configuration for installation devices like CDs. This means enabling hardware scans, using the <link linkend="sec-profile-clone-config"> Clone Config profile</link> to guarantee <filename>/etc/nixos/configuration.nix</filename> exists (for <command>nixos-rebuild</command> to work), a copy of the Nixpkgs channel snapshot used to create the install media. </del> <ins> Provides a basic configuration for installation devices like CDs. This enables redistributable firmware, includes the <link linkend="sec-profile-clone-config">Clone Config profile</link> and a copy of the Nixpkgs channel, so <command>nixos-install</command> works out of the box. </ins> </para> <para> <del> Additionally, documentation for <link linkend="opt-documentation.enable"> Nixpkgs</link> and <link linkend="opt-documentation.nixos.enable">NixOS </link> are forcefully enabled (to override the </del> <ins> Documentation for <link linkend="opt-documentation.enable">Nixpkgs</link> and <link linkend="opt-documentation.nixos.enable">NixOS</link> are forcefully enabled (to override the </ins> <link linkend="sec-profile-minimal">Minimal profile</link> preference); the <del> NixOS manual is shown automatically on TTY 8, sudo and udisks are disabled. Autologin is enabled as root. </del> <ins> NixOS manual is shown automatically on TTY 8, udisks is disabled. Autologin is enabled as <literal>nixos</literal> user, while passwordless login as both <literal>root</literal> and <literal>nixos</literal> is possible. Passwordless <command>sudo</command> is enabled too. <link linkend="opt-networking.wireless.enable">wpa_supplicant</link> is enabled, but configured to not autostart. </ins> </para> <para> <del> A message is shown to the user to start a display manager if needed, ssh with <xref linkend="opt-services.openssh.permitRootLogin"/> are enabled (but doesn't autostart). WPA Supplicant is also enabled without autostart. </del> <ins> It is explained how to login, start the ssh server, and if available, how to start the display manager. </ins> </para> <para> <del> Finally, vim is installed, root is set to not have a password, the kernel is made more silent for remote public IP installs, and several settings are tweaked so that the installer has a better chance of succeeding under low-memory environments. </del> <ins> Several settings are tweaked so that the installer has a better chance of succeeding under low-memory environments. </ins> </para> </section>

rm -f /nix-path-registration fi ''; <ins> # the installation media is also the installation target, # so we don't want to provide the installation configuration.nix. installer.cloneConfig = false; </ins> }; }

services.mingetty.autologinUser = "nixos"; # Some more help text. <del> services.mingetty.helpLine = '' The "nixos" and "root" account have empty passwords.  ${ optionalString config.services.xserver.enable "Type `sudo systemctl start display-manager' tonstart the graphical user interface."} ''; </del> <ins> services.mingetty.helpLine = '' The "nixos" and "root" accounts have empty passwords. Type `sudo systemctl start sshd` to start the SSH daemon. You then must set a password for either "root" or "nixos" with `passwd` to be able to login. '' + optionalString config.services.xserver.enable '' Type `sudo systemctl start display-manager' to start the graphical user interface. ''; </ins> # Allow sshd to be started manually through "systemctl start sshd". services.openssh = {