Avoiding nix flake update
in stand-alone flake
#2315
-
Here are my dotfiles: https://github.com/refaelsh/dotfiles. The question is: when ever I change my stand-alone Nixvim flake and rebuild NixOS, the changes are not taking effect. I need to do |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
This is the intended way to use flakes. The entire point of a lockfile is that your downstream flake is not affected by changes in your upstream flake until it explicitly updates its lockfile. You can however bump specific inputs instead of updating all of them:
Although, if you want the two projects to stay in sync, perhaps it makes more sense for them to be both combined into a single flake with multiple outputs? |
Beta Was this translation helpful? Give feedback.
Assume you combine things into your top-level flake's outputs:
If you have many packages, and don't want your neovim to be your default package, then you can tell a friend to do:
If neovim is what you would consider your "default" build, then you can alias your
packages.*.nvim
output aspackages.*. default
and the following will also work: