vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / nixos / modules / profiles / headless.nix
blobeb29f3d65106cd726f3ee65b4293af87bf13a19f
1 # Common configuration for headless machines (e.g., Amazon EC2
2 # instances).
4 { lib, ... }:
6 with lib;
9   # Don't start a tty on the serial consoles.
10   systemd.services."serial-getty@ttyS0".enable = lib.mkDefault false;
11   systemd.services."serial-getty@hvc0".enable = false;
12   systemd.services."getty@tty1".enable = false;
13   systemd.services."autovt@".enable = false;
15   # Since we can't manually respond to a panic, just reboot.
16   boot.kernelParams = [ "panic=1" "boot.panic_on_fail" "vga=0x317" "nomodeset" ];
18   # Don't allow emergency mode, because we don't have a console.
19   systemd.enableEmergencyMode = false;
21   # Being headless, we don't need a GRUB splash image.
22   boot.loader.grub.splashImage = null;