mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-15 17:51:01 +00:00
676ef10377
This should enable `nix run` to work under shells like fish and zsh, as well as making child shells not needlessly reset any environment that should be inherited. Implementation adapted from NixOS.
10 lines
225 B
Nix
10 lines
225 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
environment.systemPath = [ pkgs.hello ];
|
|
|
|
test = ''
|
|
echo checking systemPath in setEnvironment >&2
|
|
grep 'export PATH=${pkgs.hello}/bin' ${config.system.build.setEnvironment}
|
|
'';
|
|
}
|