Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
15 lines
667 B
Nix
15 lines
667 B
Nix
{ config, lib, hostPkgs, ... }:
|
|
{
|
|
config = {
|
|
# default pkgs for use in VMs
|
|
_module.args.pkgs =
|
|
# TODO: deprecate it everywhere; not just on darwin. Throw on darwin?
|
|
lib.warnIf hostPkgs.stdenv.hostPlatform.isDarwin
|
|
"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`."
|
|
hostPkgs;
|
|
|
|
defaults = {
|
|
# TODO: a module to set a shared pkgs, if options.nixpkgs.* is untouched by user (highestPrio) */
|
|
};
|
|
};
|
|
}
|