From b615a392a2a9651a9e0474f3d6d150e0ae464461 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 10 Mar 2008 20:19:33 +0000 Subject: [PATCH] Some updates to Live DVD building svn path=/nixos/trunk/; revision=11044 --- configuration/live-dvd-X-medium.nix | 207 +++++++++++++++++++++++++++ configuration/live-dvd-X-no-soft.nix | 10 ++ configuration/live-dvd-X.nix | 12 ++ helpers/make-iso9660-image.sh | 4 +- 4 files changed, 231 insertions(+), 2 deletions(-) create mode 100644 configuration/live-dvd-X-medium.nix diff --git a/configuration/live-dvd-X-medium.nix b/configuration/live-dvd-X-medium.nix new file mode 100644 index 000000000000..97eb364c15ae --- /dev/null +++ b/configuration/live-dvd-X-medium.nix @@ -0,0 +1,207 @@ +{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"; + }; + + theKernel = pkgs: let baseKernel=pkgs.kernel; + in (pkgs.module_aggregation + [ + baseKernel + (pkgs.kqemuFunCurrent baseKernel) + (pkgs.atherosFun { + kernel = baseKernel; + version = "r2756"; + pci001c_rev01 = true; + } null) + ]); + + +in +(isoFun { + inherit platform; + lib = (import ../pkgs/lib); + + networkNixpkgs = ""; + manualEnabled = true; + rogueEnabled = true; + sshdEnabled = true; + fontConfigEnabled = true; + sudoEnable = true; + includeMemtest = true; + includeStdenv = true; + includeBuildDeps = true; + addUsers = ["nixos" "livecd" "livedvd" + "user" "guest" "nix"]; + + kernel = pkgs: ( + pkgs.module_aggregation + [pkgs.kernel] + ); + + extraInitrdKernelModules = + import ./moduleList.nix; + + arbitraryOverrides = config : config // { + services = config.services // { + gw6c = { + enable = true; + autorun = false; + }; + }; + }; + + packages = pkgs : [ + pkgs.irssi + pkgs.ltrace + pkgs.subversion + pkgs.which + pkgs.file + pkgs.zip + pkgs.unzip + pkgs.unrar + pkgs.usbutils + pkgs.bc + pkgs.cpio + pkgs.ncat + pkgs.patch + pkgs.fuse + pkgs.indent + pkgs.zsh + pkgs.hddtemp + pkgs.hdparm + pkgs.sdparm + pkgs.sqlite + pkgs.wpa_supplicant + pkgs.lynx + pkgs.db4 + pkgs.rogue + pkgs.attr + pkgs.acl + pkgs.automake + pkgs.autoconf + pkgs.libtool + pkgs.gnupg + pkgs.openssl + pkgs.gnumake + pkgs.manpages + pkgs.cabextract + pkgs.upstartJobControl + pkgs.fpc + pkgs.perl + pkgs.lftp + pkgs.wget + pkgs.utillinuxCurses + pkgs.iproute + pkgs.diffutils + pkgs.pciutils + pkgs.lsof + pkgs.vimHugeX + pkgs.xpdf + pkgs.ghostscript + pkgs.gv + pkgs.firefoxWrapper + pkgs.xlaunch + pkgs.wirelesstools + pkgs.usbutils + pkgs.dmidecode + (theKernel pkgs) + pkgs.sshfsFuse + pkgs.ratpoison + pkgs.xorg.twm + pkgs.binutils + pkgs.xorg.lndir + pkgs.pstree + pkgs.psmisc + pkgs.aspell + pkgs.gettext + pkgs.xorg.xorgserver + pkgs.xorg.xsetroot + pkgs.xorg.xhost + pkgs.xorg.xwd + pkgs.xorg.xfontsel + pkgs.xorg.xwud + pkgs.xlaunch + pkgs.xsel + pkgs.xorg.xmessage + pkgs.xorg.xauth + pkgs.keynav + pkgs.xorg.xset + pkgs.xterm + pkgs.xmove + pkgs.xorg.xev + pkgs.xorg.xmodmap + pkgs.xorg.xkbcomp + pkgs.xorg.setxkbmap + pkgs.mssys + pkgs.testdisk + pkgs.gdb + pkgs.pidgin + pkgs.pidginotr + pkgs.gdmap + pkgs.thunderbird + pkgs.wv + pkgs.tightvnc + pkgs.bittornado + pkgs.wireshark + pkgs.smbfsFuse + ]; + + configList = configuration : [ + { + suffix = "X-vesa"; + configuration = (configuration // + { + boot=configuration.boot // {configurationName = "X with vesa";}; + services = configuration.services // { + xserver = xConfiguration // {videoDriver = "vesa";}; + }; + }); + } + { + suffix = "X-Intel"; + configuration = (configuration // + { + boot=configuration.boot // {configurationName = "X with Intel graphic card";}; + services = configuration.services // { + xserver = xConfiguration // {videoDriver = "intel"; driSupport = true;}; + }; + }); + } + { + suffix = "X-ATI"; + configuration = (configuration // + { + boot=configuration.boot // {configurationName = "X with ATI graphic card";}; + services = configuration.services // { + xserver = xConfiguration // {videoDriver = "ati"; driSupport = true;}; + }; + }); + } + { + suffix = "X-NVIDIA"; + configuration = (configuration // + { + boot=configuration.boot // {configurationName = "X with NVIDIA graphic card";}; + services = configuration.services // { + xserver = xConfiguration // {videoDriver = "nvidia"; driSupport = true;}; + }; + }); + } + ]; +}).rescueCD diff --git a/configuration/live-dvd-X-no-soft.nix b/configuration/live-dvd-X-no-soft.nix index 2c69051a08fc..5b5c8d968296 100644 --- a/configuration/live-dvd-X-no-soft.nix +++ b/configuration/live-dvd-X-no-soft.nix @@ -123,5 +123,15 @@ in }; }); } + { + suffix = "X-NVIDIA"; + configuration = (configuration // + { + boot=configuration.boot // {configurationName = "X with NVIDIA graphic card";}; + services = configuration.services // { + xserver = xConfiguration // {videoDriver = "nvidia"; driSupport = true;}; + }; + }); + } ]; }).rescueCD diff --git a/configuration/live-dvd-X.nix b/configuration/live-dvd-X.nix index e7b7e9b2ad39..18d0e600dd38 100644 --- a/configuration/live-dvd-X.nix +++ b/configuration/live-dvd-X.nix @@ -57,6 +57,15 @@ in extraInitrdKernelModules = import ./moduleList.nix; + arbitraryOverrides = config : config // { + services = config.services // { + gw6c = { + enable = true; + autorun = false; + }; + }; + }; + packages = pkgs : [ pkgs.irssi pkgs.ltrace @@ -147,6 +156,9 @@ in pkgs.xorg.xmodmap pkgs.xorg.xkbcomp pkgs.xorg.setxkbmap + pkgs.mssys + pkgs.testdisk + pkgs.gdb /* pkgs.elinks diff --git a/helpers/make-iso9660-image.sh b/helpers/make-iso9660-image.sh index 12e2f3031ed4..5ad8cb475de2 100644 --- a/helpers/make-iso9660-image.sh +++ b/helpers/make-iso9660-image.sh @@ -57,12 +57,12 @@ for ((n = 0; n < ${#objects[*]}; n++)); do fi done -cat pathlist +cat pathlist | sed -e 's/=\(.*\)=\(.*\)=/\\=\1=\2\\=/' | tee pathlist.safer # !!! -f is a quick hack. ensureDir $out/iso genisoimage -r -J -o $out/iso/$isoName $bootFlags \ - -hide-rr-moved -graft-points -path-list pathlist + -hide-rr-moved -graft-points -path-list pathlist.safer ensureDir $out/nix-support echo $system > $out/nix-support/system