ssmtp: Add AuthUser and AuthPass options.

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Forgot semicolon. (M)

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
Added redis service with bunch of documentation.
Fixed: now using the configured redis package.
lighttpd: improve module handling

lighttpd doesn't support loading a module more than once. If you attempt
to load a module again, lighttpd prints an error message:

  (plugin.c.131) Cannot load plugin mod_cgi more than once, please fix your config (we may not accept such configs in future releases

And it's not just the error message. The module isn't loaded (or is
messed up somehow) so that neither sub-service will work properly after
this.

This is bad news for the current approach to sub-services, where each
sub-service lists the needed modules in a server.modules += (...) block.
When two sub-services need the same module we get the above issue. (And,
AFAIK, there is no way to check if a module is already loaded either.)

First I thought about an approach where each sub-service specifies the
list of plugins it needs, and that a common server.modules = (...) list
is built from the union of those lists. That would loosly couple the
sub-services with the main lighttpd nixos module expression. But I think
this is a bad idea because lighttpd module loading order matters[1], and
the module order in the global server.modules = (...) list would be
somewhat cumbersome to control.

Here is an example:

Sub-service A needs mod_fastcgi. Sub-service B needs mod_auth and
mod_fastcgi. Note that mod_auth must be loaded *before* mod_fastcgi to
take effect. The union of those modules may either be ["mod_auth"
"mod_fastcgi"] or ["mod_fastcgi" "mod_auth"] depending on the evaluation
order. The first order will work, the latter will not.

So instead of the above, this commit moves the modules from
service.modules += (...) snippets in each sub-service to a global
server.modules = (...) list in the main lighttpd module expression. The
module loading order is fixed and each module is included only if any of
the sub-services that needs it is enabled.

The downside to this approach is that sub-services need a (tiny) bit of
change to the main lighttpd nixos module expression. But I think it is
the only sane way to do it (as long as lighttpd is written the way it
is).

References:
  [1] http://redmine.lighttpd.net/projects/1/wiki/Server_modulesDetails
  [2] http://redmine.lighttpd.net/issues/2337
Removed options that are not vital, added an `extraConfig` for any
additional configuration options for flexibility.
Add cgminer crypto currency miner
Merge pull request #193 from offlinehacker/cgminer

Add cgminer crypto currency miner
Build unit files locally
tests.xfce: attempt to fix terminal command
Merge pull request #189 from bjornfor/lighttpd-fix-module-handling

lighttpd: improve module handling
Fix filesystem initialization systemd units

Signed-off-by: Shea Levy <shea@shealevy.com>
synergy: port to systemd and add autoStart option
Refactoring: Split fonts.nix into smaller modules
fontconfig: Set the default hinting style to "slight"

This works around a bug in infinality that causes broken rendering in
some cases.  Issue NixOS/nixpkgs#663.

Upstream suggests that "slight" is a better/safer default in any case.
It also looks better, IMHO, YMMV.
Updated disnix to latest 0.3 release
qemu-vm: Add option to create empty disk images.

This allows to add additional raw disk images to the VM, which therein are
available as /dev/vdb, /dev/vdc, /dev/vde and so on. Especially when testing
partitioning, this could be useful.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
tests: Add VM test for partitioning using nixpart.

At the moment, we still use kickstart syntax, but this is going to change
soon[TM] to be more NixOS-integrated. The tests use emptyDiskImages option
introduced in the previous commit, so we don't have to create a whole bunch of
duplicate expressions.

Testing itself is done exclusively on /dev/vdb and /dev/vdc. And there is a
check (ensureSanity) to make sure none of the tests are actually mutating
/dev/vda.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Merge pull request #144 from the-kenny/ssmtp-user-pass

ssmtp: Add AuthUser and AuthPass options.
Merge pull request #182 from zefhemel/redis

Added redis service module with bunch of documentation.