2009-09-16 12:31:23 +00:00
|
|
|
# This module defines a small NixOS installation CD. It does not
|
|
|
|
# contain any graphical stuff.
|
|
|
|
|
|
|
|
{config, pkgs, ...}:
|
|
|
|
|
2009-09-20 06:00:50 +00:00
|
|
|
rec {
|
2009-09-16 12:31:23 +00:00
|
|
|
require = [./installation-cd-base.nix];
|
|
|
|
|
2009-09-20 18:48:34 +00:00
|
|
|
installer.configModule = "./nixos/modules/installer/cd-dvd/installation-cd-minimal-fresh-kernel.nix";
|
2009-09-16 12:31:23 +00:00
|
|
|
|
2009-10-16 04:27:59 +00:00
|
|
|
# Allow sshd to be started manually through "start sshd". It should
|
|
|
|
# not be started by default on the installation CD because the
|
|
|
|
# default root password is empty.
|
|
|
|
services.sshd.enable = true;
|
|
|
|
jobs.sshd.startOn = pkgs.lib.mkOverride 50 {} "";
|
|
|
|
|
2009-09-16 12:31:23 +00:00
|
|
|
# Don't include X libraries.
|
2009-09-20 15:07:19 +00:00
|
|
|
environment.noXlibs = true;
|
|
|
|
|
|
|
|
# Most users will download it anyway
|
|
|
|
security.sudo.enable = true;
|
2009-09-16 12:31:23 +00:00
|
|
|
|
2009-09-19 11:09:22 +00:00
|
|
|
# Use Linux 2.6.31-zen2 (with aufs2).
|
|
|
|
boot.kernelPackages = pkgs.kernelPackages_2_6_31_zen2;
|
2009-09-16 12:31:23 +00:00
|
|
|
|
|
|
|
# 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 = [
|
|
|
|
"iso9660" "loop" "squashfs"
|
|
|
|
];
|
|
|
|
boot.initrd.allowMissing = true;
|
2009-09-20 06:00:50 +00:00
|
|
|
|
2009-09-20 09:50:24 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2009-09-20 15:07:19 +00:00
|
|
|
klibc dmraid cryptsetup ccrypt
|
2009-09-20 09:50:24 +00:00
|
|
|
utillinuxCurses ddrescue testdisk
|
2009-09-20 15:07:19 +00:00
|
|
|
pciutils sdparm hdparm usbutils
|
2009-10-08 13:10:08 +00:00
|
|
|
btrfsProgs xfsprogs jfsutils jfsrec
|
2009-09-20 09:50:24 +00:00
|
|
|
wpa_supplicant iproute
|
2009-09-20 15:07:19 +00:00
|
|
|
manpages openssh openssl ncat socat
|
|
|
|
fuse ntfs3g gnupg gnupg2
|
2009-09-20 09:50:24 +00:00
|
|
|
patch which diffutils gcc binutils bc file
|
2009-09-20 15:07:19 +00:00
|
|
|
gnused gnumake ncurses gnugrep findutils ed
|
|
|
|
screen bvi joe nvi dar xz lsof
|
|
|
|
unrar unzip zip lzma cpio
|
2009-09-20 06:00:50 +00:00
|
|
|
];
|
2009-09-16 12:31:23 +00:00
|
|
|
}
|