Nix-magic-setup: an opinionated, easy nix setup in github actions

Every new repo, I was copy-pasting the same 4 Nix-related actions. No more.

I really like using Nix + devenv setup in all my repositories. However, my repositories all got messy with various different Nix-related setups - different actions to setup Nix install, cache and small related automations.

nix-magic-setup aims to provide an easy to use, automagic, opinionated way to setup Nix in Github actions - caching and .envrc just works out of the box.

In addition to installing Nix, it also handles caching for speeding up builds, and I’ll keep it updated with small automations and scripts to help manage Nix with Github Actions - for now, it integrates with .envrc automatically, and comments changelogs for flake.lock file updates, with more planned for the future.

5 Likes