1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-20 15:22:51 +00:00
nix-darwin/tests/environment-path.nix

16 lines
368 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
programs.bash.enable = true;
test = ''
echo checking /run/current-system/sw/bin in systemPath >&2
grep 'export PATH=.*:/run/current-system/sw/bin' ${config.out}/etc/bashrc
echo checking /bin and /sbin in systemPath >&2
grep 'export PATH=.*:/usr/bin:/usr/sbin:/bin:/sbin' ${config.out}/etc/bashrc
'';
}