3202022355
svn path=/nixos/trunk/; revision=17186
38 lines
1.2 KiB
Nix
38 lines
1.2 KiB
Nix
# This module defines a small NixOS installation CD. It does not
|
|
# contain any graphical stuff.
|
|
|
|
{config, pkgs, ...}:
|
|
|
|
{
|
|
require = [./installation-cd-base.nix];
|
|
|
|
installer.configModule = "./nixos/modules/installer/cd-dvd/installation-cd-minimal.nix";
|
|
|
|
# Don't include X libraries.
|
|
services.sshd.forwardX11 = false;
|
|
services.dbus.enable = false; # depends on libX11
|
|
services.hal.enable = false; # depends on dbus
|
|
fonts.enableFontConfig = false;
|
|
fonts.enableCoreFonts = false;
|
|
|
|
# Use Linux 2.6.31-zen0 (with aufs2).
|
|
boot.kernelPackages = pkgs.kernelPackages_2_6_31_zen0;
|
|
|
|
# We need squashfs and aufs. Zen Linux Kernel contains kernel side.
|
|
boot.initrd.extraUtilsCommands = ''
|
|
cp ${config.boot.kernelPackages.aufs2Utils}/sbin/mount.aufs $out/bin
|
|
cp ${config.boot.kernelPackages.aufs2Utils}/sbin/umount.aufs $out/bin
|
|
mkdir -p $out/var/run/current-system/sw
|
|
ln -s /bin "$out/var/run/current-system/sw/sbin"
|
|
'';
|
|
|
|
boot.initrd.extraKernelModules = [
|
|
"i8042" "pcips2" "serio" "mousedev" "evdev" "psmouse" "sermouse"
|
|
"synaptics_i2c" "unix" "usbhid" "uhci_hcd" "ehci_hcd" "ohci_hcd"
|
|
"atkbd" "xtkbd"
|
|
# CD part
|
|
"iso9660" "loop" "squashfs"
|
|
];
|
|
boot.initrd.allowMissing = true;
|
|
}
|