9 ms·
I use nix (nix-shell) for that, it's basically universal package and env manager. You create a config file, put it in directory, and wherever you are in that di
by iaml 6y ago
I use nix (nix-shell) for that, it's basically universal package and env manager. You create a config file, put it in directory, and wherever you are in that directory doing `nix-shell` will put you in correct env, not just in js. You could also script it basically however you like.
- mekster 6y agoDoes that work fine in cron and other way of invoking programmatically? Many of these version managers always simply can't be involved outside interactive shells because they require unit script to be loaded first.
- iaml 6y agoI did not need to work with this use case, but from what i understand about it, you configure cron in nixos in a declarative way and nix configures cron[0], but you will most likely see no issues with scripting it anyway, there's a whole language and it can interop with other languages [0] https://nixos.wiki/wiki/Cron https://nixos.wiki/wiki/Cron