1# Common configuration for headless machines (e.g., Amazon EC2 2# instances). 3 4{ config, lib, pkgs, ... }: 5 6with lib; 7 8{ 9 sound.enable = false; 10 boot.vesa = false; 11 12 # Don't start a tty on the serial consoles. 13 systemd.services."serial-getty@ttyS0".enable = false; 14 systemd.services."serial-getty@hvc0".enable = false; 15 systemd.services."getty@tty1".enable = false; 16 systemd.services."autovt@".enable = false; 17 18 # Since we can't manually respond to a panic, just reboot. 19 boot.kernelParams = [ "panic=1" "boot.panic_on_fail" ]; 20 21 # Don't allow emergency mode, because we don't have a console. 22 systemd.enableEmergencyMode = false; 23}