diff options
-rw-r--r-- | nixos/modules/profiles/installation-device.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/profiles/installation-device.nix b/nixos/modules/profiles/installation-device.nix index 91c718559ed7..af3ef77e99c7 100644 --- a/nixos/modules/profiles/installation-device.nix +++ b/nixos/modules/profiles/installation-device.nix @@ -46,7 +46,12 @@ with lib; ''; # Allow sshd to be started manually through "start sshd". - services.openssh.enable = true; + services.openssh = { + enable = true; + # Allow password login to the installation, if the user sets a password via "passwd" + # It is safe as root doesn't have a password by default and SSH is disabled by default + permitRootLogin = "yes"; + }; systemd.services.sshd.wantedBy = mkOverride 50 []; # Enable wpa_supplicant, but don't start it by default. |