1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-02 21:13:33 +02:00

tests: fix impurity of _module.args.pkgsPath

This commit is contained in:
Shamrock Lee 2022-06-15 00:38:44 +08:00 committed by Robert Helgesson
parent 8160b3b45b
commit 8d5b07fc83
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -15,6 +15,10 @@ let
check = false; check = false;
} ++ [ } ++ [
{ {
# Bypass <nixpkgs> reference inside modules/modules.nix to make the test
# suite more pure.
_module.args.pkgsPath = pkgs.path;
# Fix impurities. Without these some of the user's environment # Fix impurities. Without these some of the user's environment
# will leak into the tests through `builtins.getEnv`. # will leak into the tests through `builtins.getEnv`.
xdg.enable = true; xdg.enable = true;