at master 675 B view raw
1{ 2 config, 3 lib, 4 hostPkgs, 5 ... 6}: 7{ 8 config = { 9 # default pkgs for use in VMs 10 _module.args.pkgs = 11 # TODO: deprecate it everywhere; not just on darwin. Throw on darwin? 12 lib.warnIf hostPkgs.stdenv.hostPlatform.isDarwin 13 "Do not use the `pkgs` module argument in tests you want to run on darwin. It is ambiguous, and many tests are broken because of it. If you need to use a package on the VM host, use `hostPkgs`. Otherwise, use `config.node.pkgs`, or `config.nodes.<name>.nixpkgs.pkgs`." 14 hostPkgs; 15 16 defaults = { 17 # TODO: a module to set a shared pkgs, if options.nixpkgs.* is untouched by user (highestPrio) */ 18 }; 19 }; 20}