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.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user