mirror of
https://github.com/nix-community/home-manager
synced 2024-12-20 16:59:47 +01:00
tests: fix impurity of _module.args.pkgsPath
This commit is contained in:
parent
8160b3b45b
commit
8d5b07fc83
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ let
|
|||
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
|
||||
# will leak into the tests through `builtins.getEnv`.
|
||||
xdg.enable = true;
|
||||
|
|
Loading…
Reference in a new issue