From 4a08f3720635b7bb3b46dea80bba491302b16f68 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 5 May 2014 15:54:38 +0200 Subject: [PATCH] Don't start getty@tty1 on headless machines (like EC2) Backport: 14.04 --- nixos/modules/profiles/headless.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/profiles/headless.nix b/nixos/modules/profiles/headless.nix index 14fc905f783..4be0fb44216 100644 --- a/nixos/modules/profiles/headless.nix +++ b/nixos/modules/profiles/headless.nix @@ -12,6 +12,8 @@ with lib; # Don't start a tty on the serial consoles. systemd.services."serial-getty@ttyS0".enable = false; systemd.services."serial-getty@hvc0".enable = false; + systemd.services."getty@tty1".enable = false; + systemd.services."autovt@".enable = false; # Since we can't manually respond to a panic, just reboot. boot.kernelParams = [ "panic=1" "boot.panic_on_fail" ];