[Nix-dev] Running nix-shell commands as cron jobs
    Anders Lundstedt 
    anders at anderslundstedt.se
       
    Wed Oct  7 22:06:17 CEST 2015
    
    
  
A python script I have depends on the requests2 package. I can run the
script using
nix-shell --pure -p python3 -p python3Packages.requests2 --run ./my-script.py
However when putting this line as a cron job I get the cron output:
error: Nix database directory ‘/nix/var/nix/db’ is not writable:
Permission denied
What solutions are there to run a simple script with dependencies as a
cron job, other than to add the script as a package?
    
    
More information about the nix-dev
mailing list