diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-01-20 15:32:31 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-01-20 16:23:52 +0100 |
commit | 261c25601d9a4efd5245e3ef161fb52bf0543083 (patch) | |
tree | 96558cc1ad6efeb7c03255b46eb2768d30216359 /tests/nixos/nss-preload.nix | |
parent | 74026bb1014460d511534da8a955bee6948716ee (diff) |
Use the official, documented NixOS runTest interface
Diffstat (limited to 'tests/nixos/nss-preload.nix')
-rw-r--r-- | tests/nixos/nss-preload.nix | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/tests/nixos/nss-preload.nix b/tests/nixos/nss-preload.nix index 5a6ff3f68..cef62e95b 100644 --- a/tests/nixos/nss-preload.nix +++ b/tests/nixos/nss-preload.nix @@ -1,11 +1,9 @@ -{ nixpkgs, system, overlay }: - -with import (nixpkgs + "/nixos/lib/testing-python.nix") { - inherit system; - extraConfigurations = [ { nixpkgs.overlays = [ overlay ]; } ]; -}; +{ lib, config, nixpkgs, ... }: let + + pkgs = config.nodes.client.nixpkgs.pkgs; + nix-fetch = pkgs.writeText "fetch.nix" '' derivation { # This derivation is an copy from what is available over at @@ -41,9 +39,7 @@ let ''; in -makeTest ( - -rec { +{ name = "nss-preload"; nodes = { @@ -122,4 +118,4 @@ rec { nix-build ${nix-fetch} >&2 """) ''; -}) +} |