with import ./lib; evalModules { modules = [ ({ a, pkgs, ... }: { options.foo = mkOption { default = pkgs.hello; }; config._module.args.a = throw "AAA"; }) ]; }