at 24.11-pre 667 B view raw
1{ config, lib, hostPkgs, ... }: 2{ 3 config = { 4 # default pkgs for use in VMs 5 _module.args.pkgs = 6 # TODO: deprecate it everywhere; not just on darwin. Throw on darwin? 7 lib.warnIf hostPkgs.stdenv.hostPlatform.isDarwin 8 "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`." 9 hostPkgs; 10 11 defaults = { 12 # TODO: a module to set a shared pkgs, if options.nixpkgs.* is untouched by user (highestPrio) */ 13 }; 14 }; 15}