* Disable stuff like ALSA and the splash screen in headless setups

(like EC2 instances).

svn path=/nixos/trunk/; revision=30192
This commit is contained in:
Eelco Dolstra 2011-11-02 16:10:30 +00:00
parent 3fd482677e
commit e0573105b7
3 changed files with 12 additions and 5 deletions

View file

@ -0,0 +1,10 @@
# Common configuration for headless machines (e.g., Amazon EC2
# instances).
{
sound.enable = false;
boot.vesa = false;
boot.initrd.enableSplashScreen = false;
services.ttyBackgrounds.enable = false;
services.mingetty.ttys = [ ];
}

View file

@ -3,7 +3,7 @@
with pkgs.lib;
{
require = [ ./ec2-data.nix ];
require = [ ../profiles/headless.nix ./ec2-data.nix ];
system.build.amazonImage =
pkgs.vmTools.runInLinuxVM (
@ -104,9 +104,6 @@ with pkgs.lib;
mount -t aufs -o dirs=$targetRoot/ephemeral0/nix=rw:$targetRoot/nix=rr none $targetRoot/nix
'';
# There are no virtual consoles.
services.mingetty.ttys = [ ];
# Allow root logins only using the SSH key that the user specified
# at instance creation time.
services.openssh.enable = true;

View file

@ -3,7 +3,7 @@
with pkgs.lib;
{
require = [ ../profiles/qemu-guest.nix ./ec2-data.nix ];
require = [ ../profiles/qemu-guest.nix ../profiles/headless.nix ./ec2-data.nix ];
system.build.novaImage =
pkgs.vmTools.runInLinuxVM (