diff options
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/run-firecracker-vm/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/run-firecracker-vm/default.nix b/pkgs/run-firecracker-vm/default.nix index a8b3a92..c8a77e5 100644 --- a/pkgs/run-firecracker-vm/default.nix +++ b/pkgs/run-firecracker-vm/default.nix @@ -134,8 +134,6 @@ let (pkgs.runCommand "mount.vsock9p" { } "install -D ${mountVsock9p} $out/bin/mount.vsock9p") ]; - services.getty.autologinUser = "root"; - # sshd, started on demand (a layer may turn that off), with the host # key the run script serves via 9P on vsock port 567 (--ssh-host-key; # not in the store), copied to /run/ssh before sshd (or its socket) @@ -167,7 +165,6 @@ let rmdir "$share" ''; }; - systemd.targets.getty.wants = lib.mkForce [ ]; # no getty on tty1 # A fixed machine-id, so systemd doesn't consider every boot the first. environment.etc.machine-id.text = builtins.hashString "md5" "firecracker" + "\n"; @@ -220,8 +217,9 @@ let # No screen, no X, and no hardware to tell apart, but virtio: # neither kbd and systemd-vconsole-setup, nor fontconfig, nor su's # xauth (shadow.nix sets it, not as a default), nor udev's hardware - # database. - console.enable = false; + # database. No console means no getty either, not even on ttyS0: + # the way in is ssh, or layers/console.nix. + console.enable = lib.mkDefault false; fonts.fontconfig.enable = false; security.pam.services.su.forwardXAuth = lib.mkForce false; environment.etc."udev/hwdb.bin".enable = false; |
