aboutsummaryrefslogtreecommitdiff
path: root/tests/nixos/containers
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-01-20 15:32:31 +0100
committerRobert Hensing <robert@roberthensing.nl>2023-01-20 16:23:52 +0100
commit261c25601d9a4efd5245e3ef161fb52bf0543083 (patch)
tree96558cc1ad6efeb7c03255b46eb2768d30216359 /tests/nixos/containers
parent74026bb1014460d511534da8a955bee6948716ee (diff)
Use the official, documented NixOS runTest interface
Diffstat (limited to 'tests/nixos/containers')
-rw-r--r--tests/nixos/containers/containers.nix11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/nixos/containers/containers.nix b/tests/nixos/containers/containers.nix
index a4856b2df..c8ee78a4a 100644
--- a/tests/nixos/containers/containers.nix
+++ b/tests/nixos/containers/containers.nix
@@ -1,12 +1,7 @@
# Test whether we can run a NixOS container inside a Nix build using systemd-nspawn.
-{ nixpkgs, system, overlay }:
+{ lib, nixpkgs, ... }:
-with import (nixpkgs + "/nixos/lib/testing-python.nix") {
- inherit system;
- extraConfigurations = [ { nixpkgs.overlays = [ overlay ]; } ];
-};
-
-makeTest ({
+{
name = "containers";
nodes =
@@ -65,4 +60,4 @@ makeTest ({
host.succeed("[[ $(cat ./result/msg) = 'Hello World' ]]")
'';
-})
+}