Re:The Pain That Is GitHub Actions
by noplacelikehome on Friday March 21, 2025 @07:42AM
(#43434467)
One neat Nix feature is development shells, which let you define isolated shell environments that can be activated by invoking `nix develop` (or via direnv upon entering a directory):
I can then use these tools inside the devShell from my jobs like so:
Since I'm doing this within a Nix flake all of the dependencies for this environment are recorded in a lock file. Provided my clone of the repo is up to date I should have the same versions.
[ Parent
| on HN ]
Re:The Pain That Is GitHub Actions
by SOLAR_FIELDS on Saturday March 22, 2025 @10:29AM
(#43445831)
You can combine this with direnv and auto-activate the nix environment when you `cd` into directories as well. We do this, and just activate the shell in ci environments with a cache. Works great.