4 ms·
> Flakes are coupled to git. You need to remember to stage changes whenever you do Ctrl+S in your editor before rebuilding. You only need to `git add` the file
by ParetoOptimal 3y ago
> Flakes are coupled to git. You need to remember to stage changes whenever you do Ctrl+S in your editor before rebuilding.
You only need to `git add` the file once.
You do not need to stage every change after that before flakes can "see" the change.
- bergkvist 3y agoYes, you are right - I misremembered this detail. My problem at the the time was I didn't want to commit my flake.nix to the repository in one of my previous work places (for political reasons). So I had to unstage and restage it every time I created a new commit.
- pxc 3y ago> I didn't want to commit my flake.nix to the repository in one of my previous work places (for political reasons). Does the same workplace not allow people to include config related to their editors and so on?
- yencabulator 3y agoEven better, you can `git add -N` and just record the intent to include the file in a later commit, without staging its current contents. Nix seems happy with that.