about summary refs log tree commit diff
path: root/tests/programs/gnupg/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/programs/gnupg/default.nix')
-rw-r--r--tests/programs/gnupg/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/programs/gnupg/default.nix b/tests/programs/gnupg/default.nix
index 24756a3e..43ba9f05 100644
--- a/tests/programs/gnupg/default.nix
+++ b/tests/programs/gnupg/default.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }:
+{ pkgs, nixpkgsPath, ... }:
 
 let
   mkExpect = expectScript: script: pkgs.writeScript "test-gnupg-cli" ''
@@ -27,7 +27,7 @@ in {
 
   machine = { lib, ... }: {
     imports = map (what:
-      "${import ../../../nixpkgs-path.nix}/nixos/tests/common/${what}.nix"
+      "${nixpkgsPath}/nixos/tests/common/${what}.nix"
     ) [ "user-account" "x11" ];
 
     services.openssh.enable = true;