login shell without password on nixos/nixops

495 Views Asked by At

what i want

i'm using nixops to deploy to VirtualBox and libvirtd (KVM) and on both environments i would like it if the shell did not have a login with username/password bust instead would already provide a logged in shell.

  • for libvirt we have: virsh console myfancydeploymentname
  • for VirtualBox we have: the graphical interface or some vboxmanage command

source

maybe it is just an extension here:

https://nixos.org/nixos/options.html#logind

or

https://nixos.org/nixos/options.html#tty

any pointer would be lovely!

1

There are 1 best solutions below

0
On

just set services.mingetty.autologinUser = "root"; and there won't be any prompt.