Files
home-manager/tests/modules/misc/nix/keep-old-nix-path.nix
Robert Helgesson c7ffc9727d nix: simplify tests
(cherry picked from commit d00c6f6d0a)
2024-12-07 12:59:49 +01:00

15 lines
272 B
Nix

{ config, ... }:
{
nix = {
package = config.lib.test.mkStubPackage { };
nixPath = [ "/a" "/b/c" ];
keepOldNixPath = false;
};
nmt.script = ''
assertFileContains home-path/etc/profile.d/hm-session-vars.sh \
'export NIX_PATH="/a:/b/c"'
'';
}