2008-06-07 11:52:44 +01:00
|
|
|
{
|
|
|
|
platform ? __currentSystem
|
|
|
|
,hostConnectPort ? "3737"
|
2008-08-27 22:03:26 +01:00
|
|
|
,sshPubKey ? /var/certs/ssh/id_livedvd.pub
|
2008-06-07 11:52:44 +01:00
|
|
|
} :
|
2008-05-12 08:12:18 +01:00
|
|
|
let
|
|
|
|
isoFun = import ./rescue-cd-configurable.nix;
|
|
|
|
in
|
|
|
|
(isoFun {
|
|
|
|
inherit platform;
|
|
|
|
|
|
|
|
networkNixpkgs = "";
|
|
|
|
manualEnabled = true;
|
|
|
|
rogueEnabled = false;
|
|
|
|
sshdEnabled = true;
|
|
|
|
fontConfigEnabled = false;
|
|
|
|
sudoEnable = true;
|
|
|
|
includeMemtest = false;
|
|
|
|
includeStdenv = true;
|
|
|
|
includeBuildDeps = true;
|
|
|
|
|
|
|
|
/*
|
|
|
|
If anyone uses that DVD on live
|
|
|
|
computer, use DHCP; but also add
|
|
|
|
a rogue address for tests in virtual
|
|
|
|
networks without DHCP at all.
|
|
|
|
*/
|
|
|
|
addIP = "10.0.253.251";
|
|
|
|
netmask = "255.255.0.0";
|
|
|
|
|
|
|
|
packages = pkgs : [
|
|
|
|
pkgs.patch
|
|
|
|
pkgs.irssi
|
|
|
|
pkgs.subversion
|
|
|
|
pkgs.w3m
|
|
|
|
pkgs.utillinuxCurses
|
|
|
|
pkgs.wpa_supplicant
|
|
|
|
pkgs.emacs
|
|
|
|
pkgs.vimHugeX
|
2008-06-07 11:52:44 +01:00
|
|
|
pkgs.socat
|
2008-05-12 08:12:18 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
/*
|
|
|
|
The goal is remotely controlled
|
|
|
|
installation (maybe over virtual
|
|
|
|
networking with QEmu without human
|
|
|
|
interaction), so let's make ssh
|
|
|
|
work without manual password entry
|
|
|
|
*/
|
|
|
|
additionalFiles = [
|
|
|
|
{
|
2008-08-27 22:03:26 +01:00
|
|
|
source = sshPubKey;
|
2008-05-12 08:12:18 +01:00
|
|
|
target = "/root/.ssh/authorized_keys";
|
|
|
|
}
|
|
|
|
];
|
2008-06-07 11:52:44 +01:00
|
|
|
|
|
|
|
additionalJobs = [
|
|
|
|
{
|
|
|
|
name = "Socat-ssh-proxy";
|
|
|
|
job = ''
|
|
|
|
start on sshd/started
|
|
|
|
script
|
|
|
|
sleep 5
|
|
|
|
/var/run/current-system/sw/bin/socat tcp:10.0.2.2:${hostConnectPort} tcp:127.0.0.1:22
|
|
|
|
end script
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
];
|
2008-09-08 23:36:11 +01:00
|
|
|
nix = pkgs: pkgs.nixCustomFun (pkgs.nixUnstable.src)
|
|
|
|
""
|
|
|
|
["nix-reduce-build" "nix-http-export.cgi"]
|
|
|
|
["--with-docbook-xsl=\\\${pkgs.docbook5_xsl}/xml/xsl/docbook/"];
|
2008-11-25 18:00:25 +00:00
|
|
|
extraInitrdKernelModules = ["usb_storage" "ehci_hcd" "ohci_hcd" "iso9660" "ext3"];
|
2008-05-12 08:12:18 +01:00
|
|
|
}).rescueCD
|