[Nix-dev] instructions for setting up apache + mediawiki is broken
Bjørn Forsman
bjorn.forsman at gmail.com
Fri Jun 28 21:24:47 CEST 2013
On 28 June 2013 20:47, Bjørn Forsman <bjorn.forsman at gmail.com> 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 = "admin at example.org";
> 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
More information about the nix-dev
mailing list