Commit graph

184 commits

Author SHA1 Message Date
Eelco Dolstra f948c10999 * Enable compositing in the X server.
svn path=/nixos/trunk/; revision=8118
2007-02-28 22:59:39 +00:00
Eelco Dolstra 935042365c * Allow a netmask to be specified for each interface.
svn path=/nixos/trunk/; revision=8099
2007-02-28 14:19:20 +00:00
Eelco Dolstra 94393dbd20 * Create /var/state/opengl-driver.
svn path=/nixos/trunk/; revision=8069
2007-02-27 00:50:22 +00:00
Eelco Dolstra a50097b9ca * Enable DRI support in the X server.
svn path=/nixos/trunk/; revision=8067
2007-02-27 00:31:04 +00:00
Eelco Dolstra fdb5a06fa4 * Specify the resolution and the video driver name in the configuration file.
svn path=/nixos/trunk/; revision=8061
2007-02-26 23:11:32 +00:00
Eelco Dolstra 4164a4ff3e * Construct the module path dynamically.
svn path=/nixos/trunk/; revision=8059
2007-02-26 21:39:07 +00:00
Eelco Dolstra ef6b45d924 * Start a display manager (SLiM).
svn path=/nixos/trunk/; revision=8045
2007-02-25 22:27:17 +00:00
Eelco Dolstra 426a8b806b * Use xinit to start the X server plus some initial clients (twm + xterm).
svn path=/nixos/trunk/; revision=8043
2007-02-25 16:20:14 +00:00
Eelco Dolstra 3ad2c91939 * Pure X server. All fonts are now in the Nix store.
svn path=/nixos/trunk/; revision=8041
2007-02-25 15:53:57 +00:00
Eelco Dolstra 0ee31b29ef * The daemon needs OpenSSH to be in the PATH for signing/verifying.
svn path=/nixos/trunk/; revision=8025
2007-02-22 18:04:18 +00:00
Eelco Dolstra ed36857d5e * Don't start dhclient on interfaces that are explicitly configured.
svn path=/nixos/trunk/; revision=8014
2007-02-22 14:26:53 +00:00
Eelco Dolstra e23de214ab * Only start dhclient on real network interfaces like eth0, not aliases like eth0:0.
svn path=/nixos/trunk/; revision=8012
2007-02-22 14:06:15 +00:00
Eelco Dolstra e576209a61 * ifconfig up -> ifconfig.
svn path=/nixos/trunk/; revision=8011
2007-02-22 14:00:22 +00:00
Martin Bravenboer 8e6c1ba85d Support organization configuration for subversion
svn path=/nixos/trunk/; revision=8006
2007-02-22 10:55:58 +00:00
Eelco Dolstra 1dd2eb58be * Set the hardware clock when shutting down.
svn path=/nixos/trunk/; revision=7933
2007-02-20 16:25:49 +00:00
Martin Bravenboer e99ffcbe71 changed the extraSubservices to a list of functions
svn path=/nixos/trunk/; revision=7931
2007-02-20 15:57:15 +00:00
Eelco Dolstra a17b1d5c5f * Kill all processes during shutdown so that we can unmount
filesystems cleanly.

svn path=/nixos/trunk/; revision=7930
2007-02-20 15:51:13 +00:00
Eelco Dolstra 454716ef4f * Typo.
svn path=/nixos/trunk/; revision=7928
2007-02-20 15:14:48 +00:00
Martin Bravenboer eeee6ea1e2 added configuration option for extraSubservices, which allows you to plugin an arbitrary service into the webserver.
svn path=/nixos/trunk/; revision=7926
2007-02-20 15:11:49 +00:00
Eelco Dolstra ef8e5716cb * Set the right PATH for dhclient.
svn path=/nixos/trunk/; revision=7925
2007-02-20 14:59:29 +00:00
Eelco Dolstra 66a9cfbcdc * Give everybody access to /dev/kvm. I *think* that's safe...
svn path=/nixos/trunk/; revision=7923
2007-02-20 14:30:05 +00:00
Eelco Dolstra 619c3e0465 * Don't use the DHCP wrapper.
svn path=/nixos/trunk/; revision=7921
2007-02-20 14:20:33 +00:00
Eelco Dolstra 06a6116c44 * Allow manual network configuration, i.e., specificying the IP
address, gateway, and nameservers in the system configuration.

svn path=/nixos/trunk/; revision=7898
2007-02-12 16:00:55 +00:00
Eelco Dolstra ac93023f35 * Pass userCreationDomain.
svn path=/nixos/trunk/; revision=7891
2007-02-12 11:57:18 +00:00
Eelco Dolstra 56576e7c28 * Prevent repeated mounting.
svn path=/nixos/trunk/; revision=7882
2007-02-08 15:24:13 +00:00
Eelco Dolstra 0685f24957 svn path=/nixos/trunk/; revision=7786 2007-01-23 20:09:06 +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 cf9016d816 * Mount devpts.
* Set the right permissions on /dev/tty and /dev/ptmx.

svn path=/nixos/trunk/; revision=7703
2007-01-16 22:34:15 +00:00
Eelco Dolstra 554ae9908b * Some slightly hacky LDAP support. The problem is that Glibc has to
be able to find the LDAP NSS module, which is normally installed in
  Glibc's prefix (under /lib/libnss_ldap...).  Of course, we can't do
  that; it wouldn't be pure.  As a workaround, we simply add nss_ldap
  to the LD_LIBRARY_PATH of the nscd daemon, which every other program
  uses for lookups.  So we don't have to put nss_ldap in the
  LD_LIBRARY_PATH of every program.

svn path=/nixos/trunk/; revision=7684
2007-01-15 17:19:41 +00:00
Eelco Dolstra 9963b263d3 * NSCD daemon.
svn path=/nixos/trunk/; revision=7645
2007-01-11 23:55:25 +00:00
Eelco Dolstra daa8ecfe7a * Activate software RAID arrays.
svn path=/nixos/trunk/; revision=7631
2007-01-11 00:40:28 +00:00
Eelco Dolstra 66d4c6c4e2 * Ignore remount read-only errors.
svn path=/nixos/trunk/; revision=7630
2007-01-11 00:40:08 +00:00
Eelco Dolstra 158c303e2f * Enable SFTP support in sshd.
svn path=/nixos/trunk/; revision=7622
2007-01-10 17:19:17 +00:00
Eelco Dolstra 866d87c60b * Start the cron daemon.
svn path=/nixos/trunk/; revision=7621
2007-01-10 17:09:00 +00:00
Eelco Dolstra 5b993b4ff5 * Quick hack to prevent the system from hanging in halt/reboot: force
NFS unmounts.  We have to do this because networking is already down
  by the time we get to the unmounting.  It would be better to unmount
  all remote file systems when an ip-down event occurs.

svn path=/nixos/trunk/; revision=7620
2007-01-10 17:08:34 +00:00
Eelco Dolstra 99b24cf4d1 * Mount file systems when an ip-up event occurs (e.g., for NFS mounts).
svn path=/nixos/trunk/; revision=7619
2007-01-10 17:07:21 +00:00
Eelco Dolstra a7644b8855 * Support NFS mounts.
svn path=/nixos/trunk/; revision=7615
2007-01-10 14:34:31 +00:00
Eelco Dolstra 7ba1682c05 * In fileSystems: say label = "FOO"' instead of device = "LABEL=foo"'.
svn path=/nixos/trunk/; revision=7611
2007-01-10 13:58:48 +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 60e4da4a9b * Hacked up support for volume labels.
svn path=/nixos/trunk/; revision=7587
2007-01-09 16:29:27 +00:00
Eelco Dolstra fb2d9f8347 * Race condition: splash_util fails if the virtual console doesn't
exist yet (e.g., because mingetty hasn't started yet), so make sure
  it exists.

svn path=/nixos/trunk/; revision=7584
2007-01-09 13:56:54 +00:00
Eelco Dolstra 2d20b19e5b * Don't get stuck in an infinite unmount loop on shutdown.
svn path=/nixos/trunk/; revision=7580
2007-01-09 09:52:16 +00:00
Eelco Dolstra 56da3e7887 * Allow any login program to be specified.
svn path=/nixos/trunk/; revision=7575
2007-01-08 21:34:30 +00:00
Eelco Dolstra b7f11ad98b * Generate sshd_config to set XAuthLocation if X11 forwarding is
enabled.

svn path=/nixos/trunk/; revision=7548
2007-01-07 10:19:16 +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 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 cb4e81d38f * Handle devices that are symlinks.
svn path=/nixos/trunk/; revision=7477
2006-12-24 00:54:52 +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 75e1652f05 * Chroot ntpd.
svn path=/nixos/trunk/; revision=7464
2006-12-22 19:29:18 +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 e3acce2f4f * Wait until the temporary udevd is gone.
svn path=/nixos/trunk/; revision=7457
2006-12-21 20:07:46 +00:00
Eelco Dolstra d54b0a0749 * Don't refer to non-existent groups.
svn path=/nixos/trunk/; revision=7456
2006-12-21 19:22:06 +00:00
Eelco Dolstra 3b9a7c747e * Trigger swap on new-devices.
svn path=/nixos/trunk/; revision=7455
2006-12-21 19:21:36 +00:00
Eelco Dolstra 896a935de1 * Repeatedly unmount file systems until a fixpoint is reached (no more
file systems can be unmounted).
* Remount all un-unmountable file systems as read-only.
* Explicitly call losetup to get rid of loopback devices to work
  around a bug in mount.

svn path=/nixos/trunk/; revision=7454
2006-12-21 18:12:19 +00:00
Eelco Dolstra bf8e19f6db * Mount file systems until a fixpoint is reached.
* Work properly for loopback mounts.

svn path=/nixos/trunk/; revision=7453
2006-12-21 18:10:33 +00:00
Eelco Dolstra f89f3c0643 * Emit the new-devices event to cause the filesystems job to be
rerun.

svn path=/nixos/trunk/; revision=7452
2006-12-21 18:09:10 +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 2d6e8e63ae * Forgot to commit.
svn path=/nixos/trunk/; revision=7430
2006-12-19 21:31:19 +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 84f1e01646 * Doh.
svn path=/nixos/trunk/; revision=7384
2006-12-18 15:52:43 +00:00
Eelco Dolstra 87e2456814 * Use getenv/useradd.
svn path=/nixos/trunk/; revision=7382
2006-12-18 15:48:29 +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 f29c93830e * "set" -> "env".
svn path=/nixos/trunk/; revision=7333
2006-12-13 13:09:20 +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 b80769d5ae * Hm, "set" doesn't seem to do the right thing.
svn path=/nixos/trunk/; revision=7308
2006-12-11 02:55:28 +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 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 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 79464e0d9c * Don't start X by default.
svn path=/nixos/trunk/; revision=7170
2006-11-29 22:34:59 +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 0817c307dc * Moving stuff around.
svn path=/nixos/trunk/; revision=7155
2006-11-27 19:49:05 +00:00