File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 9696 # Allow the user to login as root without password.
9797 users . extraUsers . root . initialHashedPassword = "" ;
9898
99- services . getty . helpLine = ''
100- Log in as "root" with an empty password.
101- If you are connect via serial console:
102- Type Ctrl-a c to switch to the qemu console
103- and `quit` to stop the VM.
104- '' ;
99+ services = let
100+ service = if lib . versionAtLeast ( lib . versions . majorMinor lib . version ) "20.09" then "getty" else "mingetty" ;
101+ in {
102+ ${ service } . helpLine = ''
103+ Log in as "root" with an empty password.
104+ If you are connect via serial console:
105+ Type Ctrl-a c to switch to the qemu console
106+ and `quit` to stop the VM.
107+ '' ;
108+ } ;
105109
106110 virtualisation = {
107111 graphics = mkVMDefault false ;
You can’t perform that action at this time.
0 commit comments