Skip to content

Commit df3254b

Browse files
committed
flake.nix: eable autologin in examples
1 parent 13837e2 commit df3254b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

flake.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,7 @@
173173
system.stateVersion = config.system.nixos.version;
174174

175175
networking.hostName = "${hypervisor}-microvm";
176-
users.users.root.password = "";
177-
services.getty.helpLine = ''
178-
Log in as "root" with an empty password.
179-
'';
176+
services.getty.autologinUser = "root";
180177

181178
microvm.hypervisor = hypervisor;
182179
# share the host's /nix/store if the hypervisor can do 9p

0 commit comments

Comments
 (0)