35abca4e7a
svn path=/nixos/trunk/; revision=17840
53 lines
1.7 KiB
Nix
53 lines
1.7 KiB
Nix
# This module defines a small NixOS installation CD. It does not
|
|
# contain any graphical stuff.
|
|
|
|
{config, pkgs, ...}:
|
|
|
|
rec {
|
|
require = [./installation-cd-base.nix];
|
|
|
|
installer.configModule = "./nixos/modules/installer/cd-dvd/installation-cd-minimal-fresh-kernel.nix";
|
|
|
|
# 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 {} "";
|
|
|
|
# Don't include X libraries.
|
|
environment.noXlibs = true;
|
|
|
|
# Most users will download it anyway
|
|
security.sudo.enable = true;
|
|
|
|
# Use Linux 2.6.31-zen2 (with aufs2).
|
|
boot.kernelPackages = pkgs.kernelPackages_2_6_31_zen2;
|
|
|
|
# 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;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
klibc dmraid cryptsetup ccrypt
|
|
utillinuxCurses ddrescue testdisk
|
|
pciutils sdparm hdparm usbutils
|
|
btrfsProgs xfsprogs jfsutils jfsrec
|
|
wpa_supplicant iproute
|
|
manpages openssh openssl ncat socat
|
|
fuse ntfs3g gnupg gnupg2
|
|
patch which diffutils gcc binutils bc file
|
|
gnused gnumake ncurses gnugrep findutils ed
|
|
screen bvi joe nvi dar xz lsof
|
|
unrar unzip zip lzma cpio
|
|
];
|
|
}
|