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