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 = "ad...@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. Best regards, Bjørn Forsman $ sudo nixos-rebuild test --show-trace building Nix... building the system configuration... error: while evaluating the attribute `drvPath' at `/nix/store/l7ny7f17aii5qfgmadr2wcp3wan54wlp-nix-1.5.3/share/nix/corepkgs/derivation.nix:19:9': while evaluating the builtin function `derivationStrict': while instantiating the derivation named `nixos-0.2pre4797_4ba597a-9404b2c' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:147:5': while evaluating the derivation attribute `buildCommand' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/activation/top-level.nix:149:5': while evaluating the attribute `outPath' at `/nix/store/l7ny7f17aii5qfgmadr2wcp3wan54wlp-nix-1.5.3/share/nix/corepkgs/derivation.nix:18:9': while evaluating the builtin function `getAttr': while evaluating the builtin function `derivationStrict': while instantiating the derivation named `etc' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix:12:5': while evaluating the derivation attribute `sources' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/etc/etc.nix:19:5': while evaluating the attribute `outPath' at `/nix/store/l7ny7f17aii5qfgmadr2wcp3wan54wlp-nix-1.5.3/share/nix/corepkgs/derivation.nix:18:9': while evaluating the builtin function `getAttr': while evaluating the builtin function `derivationStrict': while instantiating the derivation named `units' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14': while evaluating the derivation attribute `buildCommand' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14': while evaluating the builtin function `toString': while evaluating the attribute `outPath' at `/nix/store/l7ny7f17aii5qfgmadr2wcp3wan54wlp-nix-1.5.3/share/nix/corepkgs/derivation.nix:18:9': while evaluating the builtin function `getAttr': while evaluating the builtin function `derivationStrict': while instantiating the derivation named `unit' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14': while evaluating the derivation attribute `text' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix:14:44': while evaluating the attribute `text' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/attrsets.nix:122:41': while evaluating an anonymous function at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/modules.nix:226:43': while evaluating the attribute `result' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/modules.nix:336:11': while evaluating the builtin function `addErrorContext': while evaluating the option `systemd.units.postgresql.service.text': The error may come from the following files: option systemd.units.postgresql.service config number 1 /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix while evaluating `id' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/trivial.nix:9:8': while evaluating `evalDefinitions' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/modules.nix:153:26': while evaluating `evalProperties' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/properties.nix:132:20': while evaluating the builtin function `filter': while evaluating `triggerPropertiesGlobalEval' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/properties.nix:157:33': while evaluating an anonymous function at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/lists.nix:22:19': while evaluating `fold'' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/lists.nix:25:17': while evaluating the builtin function `length': while evaluating `uniqListExt' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/misc.nix:171:17': while evaluating an anonymous function at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/lists.nix:22:19': while evaluating `fold'' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/lists.nix:25:17': while evaluating the builtin function `length': while evaluating `evalLocalProperties' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/properties.nix:142:25': while evaluating the builtin function `filter': while evaluating an anonymous function at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/properties.nix:143:13': while evaluating `isNotdef' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/properties.nix:20:14': while evaluating `typeOf' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/types.nix:14:12': while evaluating `triggerPropertiesEval' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/properties.nix:148:27': while evaluating `foldProperty' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/properties.nix:48:27': while evaluating `isProperty' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/properties.nix:35:16': while evaluating `typeOf' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/types.nix:14:12': while evaluating the builtin function `getAttr': while evaluating the attribute `path' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/attrsets.nix:122:41': while evaluating an anonymous function at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/modules.nix:226:43': while evaluating the attribute `result' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/modules.nix:336:11': while evaluating the builtin function `addErrorContext': while evaluating the option `systemd.services.postgresql.path': The error may come from the following files: option systemd.services.postgresql config number 1 /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd.nix while evaluating `apply' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/system/boot/systemd-unit-options.nix:126:15': while evaluating `makeSearchPath' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/strings.nix:40:28': while evaluating `concatStringsSep' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/strings.nix:33:33': while evaluating an anonymous function at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/lists.nix:22:19': while evaluating `fold'' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/lists.nix:25:17': while evaluating an anonymous function at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/strings.nix:14:32': while evaluating `fold'' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/lists.nix:25:17': while evaluating an anonymous function at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/strings.nix:14:32': while evaluating `fold'' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/lists.nix:25:17': while evaluating an anonymous function at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/strings.nix:14:32': while evaluating the builtin function `elemAt': while evaluating the builtin function `head': while evaluating an anonymous function at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/strings.nix:41:32': while evaluating `postgresqlAndPlugins' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/databases/postgresql.nix:10:26': while evaluating the attribute `package' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/attrsets.nix:122:41': while evaluating an anonymous function at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/modules.nix:226:43': while evaluating the attribute `result' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/modules.nix:336:11': while evaluating the builtin function `addErrorContext': while evaluating the option `services.postgresql.package': The error may come from the following files: /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/databases/postgresql.nix while evaluating `id' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/trivial.nix:9:8': while evaluating the builtin function `throw': user-thrown exception: Not defined. _______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev