summary refs log tree commit diff
path: root/nixos/lib/testing-python.nix
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2020-06-02 16:27:07 +0200
committerJanne Heß <janne@hess.ooo>2020-09-14 00:10:21 +0200
commit9f33ab62d99c98e3f5bddd64532f15f482cf01b2 (patch)
treec383d7daef78e2fc3b3ebb61f87d92e419d434ae /nixos/lib/testing-python.nix
parent5457fc7c76bd46a791ec02a52eebc274c9ce542f (diff)
downloadnixpkgs-9f33ab62d99c98e3f5bddd64532f15f482cf01b2.tar
nixpkgs-9f33ab62d99c98e3f5bddd64532f15f482cf01b2.tar.gz
nixpkgs-9f33ab62d99c98e3f5bddd64532f15f482cf01b2.tar.bz2
nixpkgs-9f33ab62d99c98e3f5bddd64532f15f482cf01b2.tar.lz
nixpkgs-9f33ab62d99c98e3f5bddd64532f15f482cf01b2.tar.xz
nixpkgs-9f33ab62d99c98e3f5bddd64532f15f482cf01b2.tar.zst
nixpkgs-9f33ab62d99c98e3f5bddd64532f15f482cf01b2.zip
nixos/testing: Add support for specialArgs
Since using flakes disallows the usage of <unstable> (which I use in
some tests), this adds an alternative. By setting specialArgs, all VMs
can get the `unstable` flake input as an arg. This is not possible with
extraConfigurations, as that would lead to infinite recursions.
Diffstat (limited to 'nixos/lib/testing-python.nix')
-rw-r--r--nixos/lib/testing-python.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix
index 76a2022082c..498f97336c0 100644
--- a/nixos/lib/testing-python.nix
+++ b/nixos/lib/testing-python.nix
@@ -4,10 +4,12 @@
 , minimal ? false
   # Ignored
 , config ? {}
+  # !!! See comment about args in lib/modules.nix
+, specialArgs ? {}
   # Modules to add to each VM
 , extraConfigurations ? [] }:
 
-with import ./build-vms.nix { inherit system pkgs minimal extraConfigurations; };
+with import ./build-vms.nix { inherit system pkgs minimal specialArgs extraConfigurations; };
 with pkgs;
 
 rec {