Commit Graph

152 Commits

Author SHA1 Message Date
Eelco Dolstra
fddddb3f35 * Add a Grub splash screen.
svn path=/nixos/trunk/; revision=10063
2008-01-03 17:07:28 +00:00
Eelco Dolstra
4760aa9d4c * Add Memtest86+ to the CD - useful.
svn path=/nixos/trunk/; revision=10060
2008-01-03 15:24:34 +00:00
Eelco Dolstra
dc9b332fcd * Use Grub instead of isolinux on the boot CD.
svn path=/nixos/trunk/; revision=10058
2008-01-03 15:06:55 +00:00
Eelco Dolstra
93efa40b58 * Put Subversion on the installation CD so that the user can run
"nixos-checkout" to use the latest NixOS/Nixpkgs expressions (rather
  than what's on the CD).

svn path=/nixos/trunk/; revision=10057
2008-01-03 13:34:16 +00:00
Michael Raskin
c6cf1481b0 Duplicated rescue-cd.nix change in live-dvd.nix
svn path=/nixos/trunk/; revision=10054
2008-01-02 17:03:10 +00:00
Eelco Dolstra
c00448493b * Use vim instead of vimDiet on the CD because ncurses on dietlibc is
broken on x86_64 (apparently because dietlibc on x86_64 doesn't have
  sin() / cos()).

svn path=/nixos/trunk/; revision=10052
2008-01-02 16:09:55 +00:00
Michael Raskin
0b4ee455d9 A bit extended LiveDVD
svn path=/nixos/trunk/; revision=10042
2008-01-01 15:47:35 +00:00
Michael Raskin
78b288e98a Allowed sudo for LiveDVD. No point in it, but it gets cached on DVD in this case
svn path=/nixos/trunk/; revision=9989
2007-12-31 15:53:42 +00:00
Michael Raskin
05d23c076b I hope it is the final LiveDVD
svn path=/nixos/trunk/; revision=9988
2007-12-31 14:15:34 +00:00
Michael Raskin
8ffef5e73a Started doing LiveDVD - a complete system on disk, capable to install itself without Internet.
svn path=/nixos/trunk/; revision=9970
2007-12-30 09:38:04 +00:00
Eelco Dolstra
2fc94b76fe * Eliminate all calls to config.get.
svn path=/nixos/trunk/; revision=9619
2007-11-09 18:49:45 +00:00
Eelco Dolstra
5bb4e343b4 * Configuration options networking.defaultMailServer to enable direct mail
delivery without a local mail server (via ssmtp).
* Add vimDiet to the CD, not the system path in general.

svn path=/nixos/trunk/; revision=9607
2007-11-08 18:15:12 +00:00
Eelco Dolstra
8f7d294cdc svn path=/nixos/trunk/; revision=9488 2007-10-19 15:09:34 +00:00
Eelco Dolstra
ee2b3dccd8 * Use the latest Nixpkgs for the CD.
svn path=/nixos/trunk/; revision=9480
2007-10-19 11:55:24 +00:00
Eelco Dolstra
0d1aa83fea svn path=/nixos/trunk/; revision=9275 2007-09-06 21:10:15 +00:00
Eelco Dolstra
2a4417d637 * make-etc / activate-configuration: allow /etc files to be installed
as regular files instead of symlinks to the store.
* Sudo configuration, enabled through security.sudo.enable (on by
  default).  The contents of the sudoers file is specified in
  security.sudo.configFile.  The default sudoers file allows members
  of the new "wheel" group to run any command.

svn path=/nixos/trunk/; revision=9138
2007-08-16 15:09:06 +00:00
Eelco Dolstra
7243eb1d1d * Create /bin on the CD to suppress the /bin/sh symlink creation
error.
* Put the top-level system config on the CD, otherwise root doesn't
  get a working login shell on the CD (and the system PATH is broken
  as well).

svn path=/nixos/trunk/; revision=8658
2007-05-09 17:32:41 +00:00
Eelco Dolstra
14b1e6c758 * Use the latest Nixpkgs on the installation CD.
svn path=/nixos/trunk/; revision=8650
2007-05-02 21:53:23 +00:00
Eelco Dolstra
3d85bc56ff svn path=/nixos/trunk/; revision=8369 2007-03-19 23:00:48 +00:00
Eelco Dolstra
36f01930ed * Take the target platform as a parameter.
* Put the platform name in the name of the ISO image.

svn path=/nixos/trunk/; revision=8364
2007-03-19 20:28:09 +00:00
Eelco Dolstra
0828400b36 svn path=/nixos/trunk/; revision=8036 2007-02-23 21:50:32 +00:00
Eelco Dolstra
7fac47a98b svn path=/nixos/trunk/; revision=7884 2007-02-08 18:23:57 +00:00
Eelco Dolstra
5d02654a3c * Splashutils now works on x86_64.
svn path=/nixos/trunk/; revision=7873
2007-02-06 22:49:20 +00:00
Eelco Dolstra
06853a6083 svn path=/nixos/trunk/; revision=7872 2007-02-06 22:23:56 +00:00
Eelco Dolstra
98a3eaf6b7 svn path=/nixos/trunk/; revision=7865 2007-02-06 18:31:32 +00:00
Eelco Dolstra
ea9a82042c * Set ownership.
svn path=/nixos/trunk/; revision=7849
2007-02-05 21:18:02 +00:00
Eelco Dolstra
b674f74c2d * Installer fixes.
svn path=/nixos/trunk/; revision=7848
2007-02-05 21:06:59 +00:00
Eelco Dolstra
ea41e46e6d * Unpack the NixOS/Nixpkgs sources automatically when booting from the
installation CD.

svn path=/nixos/trunk/; revision=7847
2007-02-05 16:52:13 +00:00
Eelco Dolstra
82067ff5bd * Better instructions.
svn path=/nixos/trunk/; revision=7844
2007-02-05 15:20:39 +00:00
Eelco Dolstra
a1f512ede3 * Another example: NixOS on x86_64 on a USB stick.
svn path=/nixos/trunk/; revision=7787
2007-01-24 11:50:38 +00:00
Eelco Dolstra
0685f24957 svn path=/nixos/trunk/; revision=7786 2007-01-23 20:09:06 +00:00
Eelco Dolstra
2554337f82 * Put the closure of stdenv on the CD to speed up the installation.
svn path=/nixos/trunk/; revision=7775
2007-01-23 14:38:15 +00:00
Eelco Dolstra
668c146e33 * Doh! Make sure that we put *only* splash_helper in the initrd and
not all of splashutils, otherwise we get Glibc in the initrd.

svn path=/nixos/trunk/; revision=7771
2007-01-23 13:44:41 +00:00
Eelco Dolstra
836789a8a6 * pkgs doesn't have a system attribute.
svn path=/nixos/trunk/; revision=7760
2007-01-23 09:41:19 +00:00
Eelco Dolstra
c5326d8f00 * Don't use gensplash on x86_64 since it doesn't build and I'm too
lazy to fix it right now.

svn path=/nixos/trunk/; revision=7759
2007-01-22 22:22:37 +00:00
Eelco Dolstra
327cb83cf2 * Make it possible to turn off the generation of fonts.conf. This is
important for the installation CD, where we don't want a dependency
  on all those fonts.  Of course, it's quite nice that turning off the
  generation of a file automatically removes the dependencies on the
  files referenced by that file.

svn path=/nixos/trunk/; revision=7750
2007-01-22 16:42:29 +00:00
Eelco Dolstra
ee55c0048b * Fix filterSource calls.
svn path=/nixos/trunk/; revision=7669
2007-01-15 09:20:34 +00:00
Eelco Dolstra
c7c16f384a * Fixed some installer bugs.
svn path=/nixos/trunk/; revision=7629
2007-01-11 00:06:46 +00:00
Eelco Dolstra
24e34612e3 * Allow swap devices to be specified by label.
svn path=/nixos/trunk/; revision=7609
2007-01-10 13:07:57 +00:00
Eelco Dolstra
fd4c1a2c43 * The user should mount the target file system.
svn path=/nixos/trunk/; revision=7598
2007-01-09 23:12:41 +00:00
Eelco Dolstra
cbe4c2e0b8 * Installer: pull the manifest properly.
svn path=/nixos/trunk/; revision=7594
2007-01-09 21:19:06 +00:00
Eelco Dolstra
835bb2b880 * Use the latest Nixpkgs.
svn path=/nixos/trunk/; revision=7582
2007-01-09 12:12:06 +00:00
Eelco Dolstra
c4df455e81 * Allow the user to do something useful on tty8 while waiting for the
installation to finish.

svn path=/nixos/trunk/; revision=7578
2007-01-08 23:10:29 +00:00
Eelco Dolstra
1a592f3a4e * hda is called sda now.
svn path=/nixos/trunk/; revision=7535
2007-01-05 00:28:48 +00:00
Eelco Dolstra
966f6e0fb0 * More refactoring.
svn path=/nixos/trunk/; revision=7534
2007-01-04 10:31:36 +00:00
Eelco Dolstra
b6b5bafa22 * Refactoring.
svn path=/nixos/trunk/; revision=7533
2007-01-04 10:29:40 +00:00
Eelco Dolstra
acacfda1b2 * Remove references to stdenvNew.
svn path=/nixos/trunk/; revision=7532
2007-01-04 10:21:25 +00:00
Eelco Dolstra
936fa69912 * Doh.
svn path=/nixos/trunk/; revision=7479
2006-12-25 19:32:31 +00:00
Eelco Dolstra
162181ffba * LVM support (in stage 2; having / on LVM is not yet supported). LVM
triggers a new-devices event so that the filesystems job mounts file
  systems on the logical volumes.

svn path=/nixos/trunk/; revision=7478
2006-12-24 01:07:28 +00:00
Eelco Dolstra
e81f1b4334 * Add glibc, ntp to the path.
svn path=/nixos/trunk/; revision=7474
2006-12-23 22:43:39 +00:00
Eelco Dolstra
46f1c1987c * Add sd_mod.
svn path=/nixos/trunk/; revision=7471
2006-12-23 00:59:14 +00:00
Eelco Dolstra
07db057cbc * Make sure that nogroup exists.
svn path=/nixos/trunk/; revision=7469
2006-12-23 00:26:35 +00:00
Eelco Dolstra
444d6b7583 * Add some SATA / SCSI related drivers to the initrd.
svn path=/nixos/trunk/; revision=7468
2006-12-23 00:13:22 +00:00
Eelco Dolstra
f25ce41c18 * Option boot.doHardwareScan to disable the hardware scan. Also, if
the flag "safemode" is specified on the kernel command line, also
  disable the hardware scan.
* Option boot.kernelModules to specify a set of modules to be loaded
  in stage 2 (in addition to the initrd modules in
  boot.initrd.kernelModules).

svn path=/nixos/trunk/; revision=7466
2006-12-22 23:34:42 +00:00
Eelco Dolstra
2d605d7041 * Don't run ntpd as root.
svn path=/nixos/trunk/; revision=7463
2006-12-22 19:23:19 +00:00
Eelco Dolstra
f037f6fbd4 * Emit ip-up / ip-down events when we get or lose a DHCP lease.
* ntpd: start on ip-up, not when the network interfaces are up,
  otherwise it will fail because it can't find any servers right
  away.

svn path=/nixos/trunk/; revision=7461
2006-12-22 17:28:25 +00:00
Eelco Dolstra
617ebcbcce * Job for ntpd. Doesn't seem to work quite right, but that might be a
VMware problem.

svn path=/nixos/trunk/; revision=7460
2006-12-21 23:43:17 +00:00
Eelco Dolstra
647db4dd2a * Don't try to mount when the mount point isn't there yet.
* Run fsck.

svn path=/nixos/trunk/; revision=7458
2006-12-21 20:08:15 +00:00
Eelco Dolstra
78fcb0a356 * Skip the sys-* events, otherwise we reboot accidentally.
svn path=/nixos/trunk/; revision=7451
2006-12-21 18:08:29 +00:00
Eelco Dolstra
42cf9a9050 * Respect the options and fsType attributes.
* Remount file systems to allow mount options to be changed
  dynamically.

svn path=/nixos/trunk/; revision=7450
2006-12-21 14:44:22 +00:00
Eelco Dolstra
b363fc4c57 * Mount all file systems in the fileSystems option.
svn path=/nixos/trunk/; revision=7449
2006-12-21 14:22:40 +00:00
Eelco Dolstra
c78a1d9781 * Upstart job to start swapping to the devices or files listed in the
swapDevices option.

svn path=/nixos/trunk/; revision=7448
2006-12-21 01:07:23 +00:00
Eelco Dolstra
e060b99c52 * Removed boot.rootDevice, instead obtain the root device from the
filesystems option (specifically the file system with mountPoint ==
  "/").

svn path=/nixos/trunk/; revision=7447
2006-12-21 00:16:20 +00:00
Eelco Dolstra
f9d67afce0 * Options for overriding the set of kernel modules in the initrd.
svn path=/nixos/trunk/; revision=7432
2006-12-19 22:12:44 +00:00
Eelco Dolstra
a630a314f2 * Wait for jobs to finish.
svn path=/nixos/trunk/; revision=7418
2006-12-19 01:34:09 +00:00
Eelco Dolstra
af1c54fbdc * Subversion subservice.
* Example of a NixOS configuration for a Subversion server.

svn path=/nixos/trunk/; revision=7412
2006-12-19 01:03:15 +00:00
Eelco Dolstra
9f47929138 * Apache configuration.
svn path=/nixos/trunk/; revision=7393
2006-12-18 19:46:48 +00:00
Eelco Dolstra
70f929a0a5 * Upstart job for Apache.
svn path=/nixos/trunk/; revision=7391
2006-12-18 19:20:03 +00:00
Eelco Dolstra
8293f1eb61 svn path=/nixos/trunk/; revision=7388 2006-12-18 17:41:57 +00:00
Eelco Dolstra
1604d2fa81 svn path=/nixos/trunk/; revision=7387 2006-12-18 17:41:46 +00:00
Eelco Dolstra
37c17d7601 * When runtime switching to a new configuration, stop/start/restart
Upstart jobs as appropriate.  I.e., if a job exists in the old but
  not the new configuration, stop it; if it exists in the new but not
  the old, start it; and most interesting, if it exists in both but
  its store paths differ, restart it.  So the purely functional model
  combined cryptographic hashing allows us to precisely identify how
  two configurations differ from each other 

svn path=/nixos/trunk/; revision=7385
2006-12-18 16:27:56 +00:00
Eelco Dolstra
87e2456814 * Use getenv/useradd.
svn path=/nixos/trunk/; revision=7382
2006-12-18 15:48:29 +00:00
Eelco Dolstra
4ae268739d * Use services.mingetty.ttys.
svn path=/nixos/trunk/; revision=7381
2006-12-18 15:41:18 +00:00
Eelco Dolstra
1852d493f4 * Fix the sshd and xserver jobs.
svn path=/nixos/trunk/; revision=7379
2006-12-18 15:16:20 +00:00
Eelco Dolstra
3e7f4280df * activate-configuration.sh: make sure that we're running on a NixOS
installation to prevent horrible accidents.
* Add the kernel parameters to isolinux.cfg.
* Use useradd/groupadd to create users/groups; use Glibc's getent to
  check for existence.
* Create the root account properly.

svn path=/nixos/trunk/; revision=7357
2006-12-16 21:48:12 +00:00
Eelco Dolstra
8f21b0119c * Get the CD to build again.
svn path=/nixos/trunk/; revision=7356
2006-12-16 18:24:49 +00:00
Eelco Dolstra
57663aae6b * Some basic udev rules: give the right permission to /dev/null etc.,
put input devices in /dev/input, and create a symlink /dev/cdrom for
  CD-ROM devices.

svn path=/nixos/trunk/; revision=7335
2006-12-13 14:24:33 +00:00
Eelco Dolstra
07627d8cdd * Move starting of udevd (and udevtrigger/settle) into an Upstart
job.

svn path=/nixos/trunk/; revision=7330
2006-12-13 12:17:38 +00:00
Eelco Dolstra
4b5b0d2c66 * Purify the sshd configuration file (don't put it in /etc/ssh).
svn path=/nixos/trunk/; revision=7320
2006-12-12 15:32:28 +00:00
Eelco Dolstra
2d0f190f20 * More refactoring: renamed boot-environment.nix to system.nix (since
it does a lot more than just booting), and merged
  system-configuration.nix into system.nix.

svn path=/nixos/trunk/; revision=7318
2006-12-11 17:36:57 +00:00
Eelco Dolstra
74783a4510 * More refactoring; move some of the boot time options into the
options framework.

svn path=/nixos/trunk/; revision=7317
2006-12-11 16:10:23 +00:00
Eelco Dolstra
7573a88ca6 * More refactoring.
svn path=/nixos/trunk/; revision=7316
2006-12-11 15:47:30 +00:00
Eelco Dolstra
ce29e4efc7 * More refactoring.
svn path=/nixos/trunk/; revision=7314
2006-12-11 15:42:02 +00:00
Eelco Dolstra
16a9702c4a * Move some stuff out of boot-environment.nix.
svn path=/nixos/trunk/; revision=7313
2006-12-11 15:32:10 +00:00
Eelco Dolstra
970924e487 * Forgotten to add.
svn path=/nixos/trunk/; revision=7312
2006-12-11 14:16:03 +00:00
Eelco Dolstra
1561e2421d * Enable PAM in the SSH daemon.
svn path=/nixos/trunk/; revision=7311
2006-12-11 03:25:13 +00:00
Eelco Dolstra
85fc6aedf2 * Cleanup.
svn path=/nixos/trunk/; revision=7307
2006-12-11 02:52:23 +00:00
Eelco Dolstra
f327b072cb * Very basic PAM configuration. We now use Blowfish hashing for
/etc/shadow.

svn path=/nixos/trunk/; revision=7306
2006-12-11 02:44:26 +00:00
Eelco Dolstra
06256e22d8 * A script to test configurations, i.e., make them current without
making them the boot default.  So if we screw up, we can just reset
  to get back to normal.

svn path=/nixos/trunk/; revision=7303
2006-12-11 01:03:26 +00:00
Eelco Dolstra
578b56d3c6 * Make halt/reboot work again (umount and reboot were no longer in
$PATH).

* Use the login from pam_login instead of shadowutils.

svn path=/nixos/trunk/; revision=7302
2006-12-11 00:52:36 +00:00
Eelco Dolstra
c063ea2bfa * Use runCommand.
svn path=/nixos/trunk/; revision=7300
2006-12-10 22:43:04 +00:00
Eelco Dolstra
acf656125c * Lots of refactoring.
* Clear the PATH in most scripts.  This helps to ensure purity.

svn path=/nixos/trunk/; revision=7299
2006-12-10 22:29:44 +00:00
Eelco Dolstra
4ac288e724 * Allow switching to a new configuration without rebooting. However,
we don't stop/start/restart Upstart jobs yet.

svn path=/nixos/trunk/; revision=7297
2006-12-10 00:04:58 +00:00
Eelco Dolstra
9986bda673 * Move the stuff in boot-stage-2-init.sh that doesn't have to happen
at boot time into a separate script.  This will allow us to change
  the configuration without rebooting (provided that the configuration
  doesn't have a different kernel, init, etc.).

svn path=/nixos/trunk/; revision=7294
2006-12-09 19:25:23 +00:00
Eelco Dolstra
2fe4badb9a * Start the Nix daemon to enable multi-user package management in
NixOS.

svn path=/nixos/trunk/; revision=7291
2006-12-09 03:11:14 +00:00
Eelco Dolstra
f049c35a86 * More semi-purification of /etc.
svn path=/nixos/trunk/; revision=7290
2006-12-09 02:51:42 +00:00
Eelco Dolstra
f20d572814 * Multi-user Nix setup has changed.
svn path=/nixos/trunk/; revision=7285
2006-12-09 00:06:18 +00:00
Eelco Dolstra
ec764b7c08 * Helper script to check for and create accounts.
svn path=/nixos/trunk/; revision=7171
2006-11-29 23:10:22 +00:00
Eelco Dolstra
8532f2be8e * Add the X server as an Upstart service. The X server is pure,
except for the fonts, which are still hardcoded.  The current
  configuration uses the VESA driver, which should work on most
  machines.  Of course, the configuration should now be generated from
  a higher-level specification.

svn path=/nixos/trunk/; revision=7165
2006-11-28 22:27:56 +00:00
Eelco Dolstra
39ac293b58 * Create setuid wrappers for a few programs (su and passwd). This is
still a bit ad hoc, but it works.

svn path=/nixos/trunk/; revision=7163
2006-11-28 17:34:27 +00:00