2008-01-11 17:59:39 +01:00
|
|
|
{platform ? __currentSystem} :
|
|
|
|
let
|
|
|
|
isoFun = import ./rescue-cd-configurable.nix;
|
|
|
|
xResolutions = [
|
|
|
|
{ x = 2048; y = 1536; }
|
|
|
|
{ x = 1920; y = 1024; }
|
|
|
|
{ x = 1280; y = 800; }
|
|
|
|
{ x = 1024; y = 768; }
|
|
|
|
{ x = 800; y = 600; }
|
|
|
|
{ x = 640; y = 480; }
|
|
|
|
];
|
|
|
|
xConfiguration = {
|
|
|
|
enable = true;
|
|
|
|
exportConfiguration = true;
|
|
|
|
tcpEnable = true;
|
|
|
|
resolutions = xResolutions;
|
|
|
|
sessionType = "xterm";
|
|
|
|
windowManager = "twm";
|
|
|
|
tty = "9";
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
(isoFun {
|
|
|
|
inherit platform;
|
2008-10-24 12:30:38 +02:00
|
|
|
lib = (import ../../pkgs/lib);
|
2008-01-11 17:59:39 +01:00
|
|
|
|
|
|
|
networkNixpkgs = "";
|
|
|
|
manualEnabled = true;
|
|
|
|
rogueEnabled = true;
|
|
|
|
sshdEnabled = true;
|
|
|
|
fontConfigEnabled = true;
|
|
|
|
sudoEnable = true;
|
|
|
|
includeMemtest = true;
|
|
|
|
includeStdenv = true;
|
|
|
|
includeBuildDeps = true;
|
|
|
|
addUsers = ["nixos" "livecd" "livedvd"
|
|
|
|
"user" "guest" "nix"];
|
|
|
|
|
2008-05-23 08:40:16 +02:00
|
|
|
extraModulePackages = pkgs: [pkgs.kernelPackages.kqemu];
|
2008-02-28 13:10:05 +01:00
|
|
|
extraInitrdKernelModules =
|
|
|
|
import ./moduleList.nix;
|
2008-01-11 17:59:39 +01:00
|
|
|
|
|
|
|
packages = pkgs : [
|
|
|
|
pkgs.which
|
|
|
|
pkgs.file
|
|
|
|
pkgs.zip
|
|
|
|
pkgs.unzip
|
|
|
|
pkgs.unrar
|
|
|
|
pkgs.db4
|
|
|
|
pkgs.attr
|
|
|
|
pkgs.acl
|
|
|
|
pkgs.manpages
|
|
|
|
pkgs.cabextract
|
|
|
|
pkgs.upstartJobControl
|
|
|
|
pkgs.utillinuxCurses
|
|
|
|
pkgs.emacs
|
|
|
|
pkgs.lsof
|
|
|
|
pkgs.vimHugeX
|
|
|
|
pkgs.firefoxWrapper
|
|
|
|
pkgs.xlaunch
|
|
|
|
pkgs.ratpoison
|
|
|
|
pkgs.xorg.twm
|
|
|
|
pkgs.xorg.xorgserver
|
|
|
|
pkgs.xorg.xhost
|
|
|
|
pkgs.xorg.xfontsel
|
|
|
|
pkgs.xlaunch
|
|
|
|
pkgs.xorg.xauth
|
|
|
|
pkgs.xorg.xset
|
|
|
|
pkgs.xterm
|
|
|
|
pkgs.xorg.xev
|
|
|
|
pkgs.xorg.xmodmap
|
|
|
|
pkgs.xorg.xkbcomp
|
|
|
|
pkgs.xorg.setxkbmap
|
2008-02-28 12:42:53 +01:00
|
|
|
pkgs.mssys
|
|
|
|
pkgs.testdisk
|
|
|
|
pkgs.gdb
|
2008-01-11 17:59:39 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
configList = configuration : [
|
|
|
|
{
|
|
|
|
suffix = "X-vesa";
|
2009-02-25 22:15:35 +01:00
|
|
|
configuration = args: ((configuration args) //
|
2008-01-11 17:59:39 +01:00
|
|
|
{
|
2009-02-25 22:15:35 +01:00
|
|
|
boot=(configuration args).boot // {configurationName = "X with vesa";};
|
|
|
|
services = (configuration args).services // {
|
2008-01-11 17:59:39 +01:00
|
|
|
xserver = xConfiguration // {videoDriver = "vesa";};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
|
|
|
{
|
|
|
|
suffix = "X-Intel";
|
2009-02-25 22:15:35 +01:00
|
|
|
configuration = args: ((configuration args) //
|
2008-01-11 17:59:39 +01:00
|
|
|
{
|
2009-02-25 22:15:35 +01:00
|
|
|
boot=(configuration args).boot // {configurationName = "X with Intel graphic card";};
|
|
|
|
services = (configuration args).services // {
|
2008-01-11 17:59:39 +01:00
|
|
|
xserver = xConfiguration // {videoDriver = "intel"; driSupport = true;};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
|
|
|
{
|
|
|
|
suffix = "X-ATI";
|
2009-02-25 22:15:35 +01:00
|
|
|
configuration = args: ((configuration args) //
|
2008-01-11 17:59:39 +01:00
|
|
|
{
|
2009-02-25 22:15:35 +01:00
|
|
|
boot=(configuration args).boot // {configurationName = "X with ATI graphic card";};
|
|
|
|
services = (configuration args).services // {
|
2008-01-11 17:59:39 +01:00
|
|
|
xserver = xConfiguration // {videoDriver = "ati"; driSupport = true;};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
2008-03-10 21:19:33 +01:00
|
|
|
{
|
|
|
|
suffix = "X-NVIDIA";
|
2009-02-25 22:15:35 +01:00
|
|
|
configuration = args: ((configuration args) //
|
2008-03-10 21:19:33 +01:00
|
|
|
{
|
2009-02-25 22:15:35 +01:00
|
|
|
boot=(configuration args).boot // {configurationName = "X with NVIDIA graphic card";};
|
|
|
|
services = (configuration args).services // {
|
2008-03-10 21:19:33 +01:00
|
|
|
xserver = xConfiguration // {videoDriver = "nvidia"; driSupport = true;};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
2008-01-11 17:59:39 +01:00
|
|
|
];
|
|
|
|
}).rescueCD
|