summary refs log tree commit diff
path: root/modules/profiles/headless.nix
blob: 541c46ca50c2d7f6f4e6ec3eba23e15781383b00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Common configuration for headless machines (e.g., Amazon EC2
# instances).

{ config, pkgs, ... }:

with pkgs.lib;

{
  sound.enable = false;
  boot.vesa = false;

  # Don't start a tty on the serial consoles.
  systemd.services."serial-getty@ttyS0".enable = false;
  systemd.services."serial-getty@hvc0".enable = false;

  # Since we can't manually respond to a panic, just reboot.
  boot.kernelParams = [ "panic=1" "boot.panic_on_fail" ];

  # Don't allow emergency mode, because we don't have a console.
  systemd.enableEmergencyMode = false;
}