diff options
author | Domen Kožar <domen@dev.si> | 2016-03-29 14:16:01 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2016-03-29 14:16:54 +0100 |
commit | c56c3b65964b5d06ef1cf576aa609cd76c6edf78 (patch) | |
tree | 44a9b79920d8509466f334b72d54fd019bbcd893 /nixos/lib | |
parent | 54eb061a12dd5f29ec52cad95b8e19b23b592eaf (diff) |
nixos/lib/testing.nix: make 'config' a free variable
cc @edolstra
Diffstat (limited to 'nixos/lib')
-rw-r--r-- | nixos/lib/build-vms.nix | 4 | ||||
-rw-r--r-- | nixos/lib/testing.nix | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/nixos/lib/build-vms.nix b/nixos/lib/build-vms.nix index a97bae57d9bb..4e044deca217 100644 --- a/nixos/lib/build-vms.nix +++ b/nixos/lib/build-vms.nix @@ -1,6 +1,6 @@ -{ system, minimal ? false }: +{ system, minimal ? false, config ? {} }: -let pkgs = import ../.. { config = {}; inherit system; }; in +let pkgs = import ../.. { inherit system config; }; in with pkgs.lib; with import ../lib/qemu-flags.nix; diff --git a/nixos/lib/testing.nix b/nixos/lib/testing.nix index aa1cec1ea02d..f7159634e4f1 100644 --- a/nixos/lib/testing.nix +++ b/nixos/lib/testing.nix @@ -1,6 +1,6 @@ -{ system, minimal ? false }: +{ system, minimal ? false, config ? {} }: -with import ./build-vms.nix { inherit system minimal; }; +with import ./build-vms.nix { inherit system minimal config; }; with pkgs; rec { |