diff options
author | Niklas Hambüchen <mail@nh2.me> | 2024-05-29 03:12:28 +0000 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2024-05-29 03:12:28 +0000 |
commit | cd519b610143de0d38c834c92c1c830648d4cb1a (patch) | |
tree | 05900e7367583ac0ac295c4c717a91c9fd951e67 /nixos/tests/turbovnc-headless-server.nix | |
parent | 1f77a3c14be992021d02c4bfe9578ea93e8c0003 (diff) |
turbovnc.tests: Don't override already-empty password to empty
Diffstat (limited to 'nixos/tests/turbovnc-headless-server.nix')
-rw-r--r-- | nixos/tests/turbovnc-headless-server.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/tests/turbovnc-headless-server.nix b/nixos/tests/turbovnc-headless-server.nix index 44c4dcbc4fc8e..dcb4848592d5c 100644 --- a/nixos/tests/turbovnc-headless-server.nix +++ b/nixos/tests/turbovnc-headless-server.nix @@ -26,9 +26,8 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { # So that we can ssh into the VM, see e.g. # http://blog.patapon.info/nixos-local-vm/#accessing-the-vm-with-ssh services.openssh.enable = true; - users.extraUsers.root.password = ""; - users.extraUsers.root.hashedPasswordFile = null; # avoids ambiguity warning during eval (`test-instrumentation.nix` sets it) users.mutableUsers = false; + # `test-instrumentation.nix` already sets an empty root password. # The following have to all be set to allow an empty SSH login password. services.openssh.settings.PermitRootLogin = "yes"; services.openssh.settings.PermitEmptyPasswords = "yes"; |