[Nix-dev] Running nix-shell commands as cron jobs

Eelco Dolstra eelco.dolstra at logicblox.com
Thu Oct 8 15:18:14 CEST 2015


Hi,

On 08/10/15 15:07, Bjørn Forsman wrote:

> Right :-)
> 
> But don't forget that NIX_REMOTE isn't part of
> config.environment.sessionVariables. 

Good point. Also I forgot that you need

  path = [ pkgs.nix ];

It's easier to do

  script = "source /etc/profile; nix-shell -p ..."

but that has the risk of pulling in stuff that you don't want.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list