add almir service
Don't set the firmware path in 3 different places
Updates for systemd 198/199
Set the kernel.poweroff_cmd sysctl

This allows Xen (and EC2) to power off an instance properly.  We had
this before (see aeb89fc753c6f95c9d143e6f5346f92e4a02fa67), but it got
lost in the systemd migration.
Clear /proc/sys/kernel/hotplug again

Otherwise the kernel will pointlessly try to invoke /sbin/hotplug all
the time.  Another feature lost in the systemd switch.
Add support for systemd timers
nix-gc.timer: Fix the start time
Hack: force timers.target to be started

Usually timers.target is pulled in by basic.target, but we don't
restart basic.target.  So timers.target wouldn't be started when
coming from an older systemd.
Sync after installing the boot loader

Previously we synced just before calling switch-to-configuration.
That prevents corruption of the Nix store, but it can leave the boot
loader configuration and kernel files in /boot corrupted.  So do the
sync after installing the boot loader.
pam: adding otpw optional, default false
Setting pam otpw *after* pam_unix, for dovecot failed auth messages.

I think it's nice that it first asks the usual password, and then offers the
otpw one if enabled. That enables dovecot to show the last pam prompt.

I also add the dovecot option for that.
Remove /etc lock files at boot time
lighttpd: restart service if config changes

Using /etc/lighttpd.conf "hides" the config file from NixOS so that it
will not automatically restart the service when its config file changes.
So don't do that.
fixes #127
Fix missed kernel->kernelDev change

Signed-off-by: Shea Levy <shea@shealevy.com>
Use the new net.ifnames kernel command line flag to disable persistent interface names

Signed-off-by: Shea Levy <shea@shealevy.com>
Merge branch 'lighttpd' of git://github.com/bjornfor/nixos into upstream-master

Moves config file into the store rather than polluting etc, which has a
number of benefits

Signed-off-by: Shea Levy <shea@shealevy.com>
Let resolvconf 'restart' the nscd service instead of 'reload'ing it.

Sometimes nscd starts up before a /etc/resolv.conf file has been written, and
apparently triggering a cache flush (reload) is not good enough to make it
recover from that problem. To remedy the issue, we restart the service instead.
See <https://github.com/NixOS/nixos/issues/34> for further details.
modules/config/networking.nix: strip trailing whitespace
Enable sudoedit