about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/aszlig/i3.nix4
-rw-r--r--tests/make-test.nix8
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/aszlig/i3.nix b/tests/aszlig/i3.nix
index 408a476d..3c5a5c0c 100644
--- a/tests/aszlig/i3.nix
+++ b/tests/aszlig/i3.nix
@@ -4,7 +4,9 @@
   name = "i3";
 
   machine = { lib, ... }: {
-    imports = [ <nixpkgs/nixos/tests/common/x11.nix> ];
+    imports = [
+      "${import ../../nixpkgs-path.nix}/nixos/tests/common/x11.nix"
+    ];
 
     vuizvui.user.aszlig.profiles.base.enable = true;
 
diff --git a/tests/make-test.nix b/tests/make-test.nix
index 9276dae3..d98ff87f 100644
--- a/tests/make-test.nix
+++ b/tests/make-test.nix
@@ -1,11 +1,13 @@
 f: { system ? builtins.currentSystem, ... } @ args: let
-  lib = import <nixpkgs/lib>;
+  nixpkgsPath = import ../nixpkgs-path.nix;
 
-  testLib = import <nixpkgs/nixos/lib/testing.nix> {
+  lib = import "${nixpkgsPath}/lib";
+
+  testLib = import "${nixpkgsPath}/nixos/lib/testing.nix" {
     inherit system;
   };
 
-  pkgs = import <nixpkgs> { inherit system; };
+  pkgs = import nixpkgsPath { inherit system; };
 
   testArgs = if builtins.isFunction f then f (args // {
     pkgs = pkgs // {