On 28 June 2013 20:47, Bjørn Forsman <[email protected]> wrote:
> Hi,
>
> Today I tried setting up Apache + MediaWiki, following this guide:
>
> http://nixos.org/wiki/Setting_up_MediaWiki_%26_vhosts
>
> It says I should add this to configuration.nix:
>
> services.postgresql.enable = true;
> services.httpd.enable = true;
> services.httpd.adminAddr = "[email protected]";
> services.httpd.extraSubservices =
>   [ { serviceType = "mediawiki";
>       siteName = "My Wiki";
>       logo = "http://www.example.org/wiki-logo.png";; # should be 135x135px
>       extraConfig =
>         ''
>           # See http://www.mediawiki.org/wiki/Manual:Configuration_settings
>           $wgEmailConfirmToEdit = true;
>         '';
>     }
>   ];
>
> But when I nixos-rebuild it fails pretty bad. The build log is below.
>
> I tried to comment out the httpd config stuff and then I see that
> having just "services.prostgresql.enable = true;" fails pretty badly
> too.

After searching a bit (cd nixos && git log --grep=postgres) I found
out that I have to select a postgresql package:

services.postgresql.package = pkgs.postgresql92;

Two questions:
- Is it not possible to have a default version?
- If no default version, is there at least a way to print a *human
readable* error message that hints the user about
services.postgresql.package? The error you get now is pretty horrible.

Best regards,
Bjørn Forsman
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to