I dont’t want to see warning: Git tree '/home/.../...' is dirty anymore.
Is there a config setting yet?
1 Like
You can set warn-dirty = false in your nix.conf or nix.settings.warn-dirty = false in your configuration.nix.
2 Likes
Don’t use flakes then, or make sure to commit. The warning is there for a reason, reminding you that reproducibility is not fully given, that caches can’t fully work, that there might be changes you haven’t revised.
1 Like
Yea true but at the same time I am using nix flake commands for formatting or getting fast feedback while developing.
And its confusing agentic tools
Tell them to not be confused, that this output might be expected and they shall not care. Or tell them to use nix fmt --option warn-dirty false, to only silence the warning under this very circumstance but not for general use.