summaryrefslogtreecommitdiff
path: root/tests/environment-path.nix
blob: 7d2f46dd928090aaa471dadd34085f900412fbcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ config, lib, pkgs, ... }:

with lib;

{
  test = ''
    echo checking /run/current-system/sw/bin in environment >&2
    grep 'export PATH=.*:/run/current-system/sw/bin' ${config.system.build.setEnvironment}

    echo checking /bin and /sbin in environment >&2
    grep 'export PATH=.*:/usr/bin:/usr/sbin:/bin:/sbin' ${config.system.build.setEnvironment}
  '';
}