My Neovim config and environment ported to a Nix Flake
This repository includes several GitHub Actions workflows:
- build-and-cache.yaml: Builds the Nix flake and caches it to Cachix on push to main
- update.yaml: Updates the flake lock file on a schedule or manual trigger
- trigger-nix-config-update.yaml: Triggers the "Update and push flake lock" action on the
alisonjenkins/nix-configrepository when changes are merged to main
To enable the workflow that triggers updates on the nix-config repository, you need to:
-
Create a GitHub Personal Access Token (PAT) with one of the following:
- Classic token with
reposcope, OR - Fine-grained token with
Actions: Read and writepermission for thealisonjenkins/nix-configrepository
- Classic token with
-
Add this token as a repository secret:
- Go to Settings → Secrets and variables → Actions
- Create a new secret named
NIX_CONFIG_TRIGGER_TOKEN - Paste the PAT as the value
-
Ensure the
alisonjenkins/nix-configrepository has a workflow that listens for therepository_dispatchevent withevent_type: update-flake-lock