2011-11-02 17:10:30 +01:00
|
|
|
# Common configuration for headless machines (e.g., Amazon EC2
|
|
|
|
# instances).
|
|
|
|
|
2012-05-16 17:08:44 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
2011-11-02 17:10:30 +01:00
|
|
|
{
|
|
|
|
sound.enable = false;
|
|
|
|
boot.vesa = false;
|
|
|
|
boot.initrd.enableSplashScreen = false;
|
|
|
|
services.ttyBackgrounds.enable = false;
|
2012-10-30 13:52:12 +01:00
|
|
|
|
|
|
|
# Don't start a tty on the serial consoles.
|
|
|
|
boot.systemd.services."serial-getty@ttyS0".enable = false;
|
|
|
|
boot.systemd.services."serial-getty@hvc0".enable = false;
|
2011-11-03 21:11:11 +01:00
|
|
|
|
|
|
|
# Since we can't manually respond to a panic, just reboot.
|
|
|
|
boot.kernelParams = [ "panic=1" "stage1panic=1" ];
|
2011-11-02 17:10:30 +01:00
|
|
|
}
|