aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-11-27 18:58:21 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-11-27 18:58:21 +0100
commitfc1458561086a6cf2c1311294c9089785288aea3 (patch)
tree3d72cb8ca1b127c7e76103d7b77030fb52a5ebaf /tests
parentf1b5c6876bc570ff9ac79410d8e47aadcb9aed52 (diff)
Fix evaluation
Diffstat (limited to 'tests')
-rw-r--r--tests/systemd-nspawn.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/systemd-nspawn.nix b/tests/systemd-nspawn.nix
index 49944eba3..424436b3f 100644
--- a/tests/systemd-nspawn.nix
+++ b/tests/systemd-nspawn.nix
@@ -31,13 +31,16 @@ let
};
};
- config = (import (nixpkgs + "/nixos/lib/eval-config.nix") {
+ cfg = (import (nixpkgs + "/nixos/lib/eval-config.nix") {
modules = [ machine ];
- }).config;
+ system = "x86_64-linux";
+ });
+
+ config = cfg.config;
in
-with import nixpkgs {};
+with cfg._module.args.pkgs;
runCommand "test"
{ buildInputs = [ config.system.path ];