diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-06-06 21:19:22 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-09-21 10:55:11 +0100 |
commit | a958a4aa009e371d38936ef86a327cb9e6fb154a (patch) | |
tree | bcacfb2e1d4b9134689821ad07cf783f9a2c664a /nixos/lib | |
parent | 124b0c4abcd4ee093c7cee95f36f576bc6abffa5 (diff) |
nixos/testing: Add pkgs parameter
This parameter is for packages to use in VMs, unlike hostPkgs.
Diffstat (limited to 'nixos/lib')
-rw-r--r-- | nixos/lib/testing-python.nix | 1 | ||||
-rw-r--r-- | nixos/lib/testing/pkgs.nix | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix index ab509c098d245..1c331a3c5162b 100644 --- a/nixos/lib/testing-python.nix +++ b/nixos/lib/testing-python.nix @@ -177,6 +177,7 @@ rec { ./testing/name.nix ./testing/network.nix ./testing/nodes.nix + ./testing/pkgs.nix ./testing/run.nix ./testing/testScript.nix { diff --git a/nixos/lib/testing/pkgs.nix b/nixos/lib/testing/pkgs.nix new file mode 100644 index 0000000000000..22dd586868e30 --- /dev/null +++ b/nixos/lib/testing/pkgs.nix @@ -0,0 +1,11 @@ +{ config, lib, hostPkgs, ... }: +{ + config = { + # default pkgs for use in VMs + _module.args.pkgs = hostPkgs; + + defaults = { + # TODO: a module to set a shared pkgs, if options.nixpkgs.* is untouched by user (highestPrio) */ + }; + }; +} |