- Find the latest successful Hydra build for a nixpkgs channel
- Update the input to that revision
- With a workflow
- Or manually with
nix flake update --override-input nixpkgs github:NixOS/nixpkgs/<rev>
For flakes consuming this project it is useful to add a registry item for dotfiles
nix registry add flake:dotfiles github:LukeChannings/dotfiles
This project can then be used as in input like so:
{
inputs.dotfiles.url = "dotfiles";
}
To switch to a local clone:
nix registry add flake:dotfiles path:$LOCAL_DOTFILES_PATH
cd $CONSUMING_REPO
nix flake update dotfiles