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

{
   environment.systemPath = [ pkgs.hello ];

   programs.bash.enable = true;

   test = ''
     echo checking systemPath in /etc/bashrc >&2
     grep 'export PATH=${pkgs.hello}/bin' ${config.out}/etc/bashrc
   '';
}