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 = { ... };
}
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
Hao Liu has marked this topic as resolved.
Hao Liu has marked this topic as unresolved.
Last updated: Nov 15 2024 at 11:45 UTC