* 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:
parent
3fd482677e
commit
e0573105b7
10
modules/profiles/headless.nix
Normal file
10
modules/profiles/headless.nix
Normal 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 = [ ];
|
||||
}
|
@ -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;
|
||||
|
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user