3
0
Fork 0
forked from mirrors/nixpkgs

* `installation-cd-big.nix' builds a NixOS installation CD containing

an X server and KDE 4.  Thanks to squashfs it's only 466 MiB large.
  `installation-cd-small.nix' builds the original, text-only
  installation CD.

svn path=/nixos/branches/modular-nixos/; revision=15934
This commit is contained in:
Eelco Dolstra 2009-06-11 09:51:27 +00:00
parent cd1e4aefc1
commit 03760c0c03
3 changed files with 36 additions and 7 deletions

View file

@ -1,4 +1,5 @@
# This module contains the configuration for the NixOS installation CD.
# This module contains the basic configuration for building a NixOS
# installation CD.
{config, pkgs, ...}:
@ -72,11 +73,6 @@ in
# Use Linux 2.6.29.
boot.kernelPackages = pkgs.kernelPackages_2_6_29;
# Don't include X libraries.
services.sshd.forwardX11 = false;
fonts.enableFontConfig = false;
fonts.enableCoreFonts = false;
# Show the manual.
services.showManual.enable = true;
@ -176,7 +172,11 @@ in
services.mingetty.helpLine =
''
Log in as "root" with an empty password.
Log in as "root" with an empty password. ${
if config.services.xserver.enable then
"Type `start xserver' to start\nthe graphical user interface."
else ""
}
'';
# To speed up installation a little bit, include the complete stdenv

View file

@ -0,0 +1,16 @@
# This module defines a NixOS installation CD that contains X11 and
# KDE 4.
{config, pkgs, ...}:
{
require = [./installation-cd-base.nix];
services.xserver = {
enable = true;
autorun = false;
defaultDepth = 16;
desktopManager.default = "kde4";
desktopManager.kde4.enable = true;
};
}

View file

@ -0,0 +1,13 @@
# This module defines a small NixOS installation CD. It does not
# contain any graphical stuff.
{config, pkgs, ...}:
{
require = [./installation-cd-base.nix];
# Don't include X libraries.
services.sshd.forwardX11 = false;
fonts.enableFontConfig = false;
fonts.enableCoreFonts = false;
}