set up steps:
you’ll probably need to start lorri daemon
somewhere, so that builds with be evaluated.
the advantage of this approach is that lorri will constantly rebuild & manage nix dependencies, and will cache them nicely.
nix-shell
will sometimes leave you in a lurch if e.g. your network goes down and it decides it needs to re-fetch everything.
lorri
, by comparison, would just allow you to use an old build, and would wait to update the build when network access was restored.
this is a tidy way to do it:
-
https://nix-community.github.io/home-manager/options.html#opt-services.lorri.enable
-
https://nix-community.github.io/home-manager/options.html#opt-programs.direnv.enable
-
HM can take care of the shell hook setup
-