Stream: nix

Topic: Failed to evalModules


view this post on Zulip Hao Liu (Jun 02 2024 at 07:45):

I am trying to run lib.evalModules in service-flake, it gives out an error, any idea why that's the case? cheers

nix-repl> lib.evalModules { modules = [(import ./nix/lib.nix).multiService ./nix/postgres]; specialArgs = {inherit pkgs;};}
{
  _module = «error: module <unknown-file> (:anon-1) does not look like a module.»;
  _type = "configuration";
  class = null;
  config = «error: module <unknown-file> (:anon-1) does not look like a module.»;
  extendModules = «lambda extendModules @ /nix/store/l4wskml8vcs49mg6w9la715cx10sviwh-source/lib/modules.nix:303:23»;
  options = «error: module <unknown-file> (:anon-1) does not look like a module.»;
  type = { ... };
}

view this post on Zulip Hao Liu (Jun 02 2024 at 07:46):

it seems the multiService function will take a module and return a module https://github.com/juspay/services-flake/blob/main/nix/lib.nix#L7

view this post on Zulip Notification Bot (Jun 03 2024 at 00:12):

Hao Liu has marked this topic as resolved.

view this post on Zulip Notification Bot (Jun 03 2024 at 00:12):

Hao Liu has marked this topic as unresolved.


Last updated: Nov 15 2024 at 11:45 UTC