1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

formatter: use a different treefmt root (#6792)

* formatter: use a different treefmt root

Problem: i use jujutsu as a VCS these days https://jj-vcs.github.io/jj/
and when using jujutsu workspaces, they dont contain the `.git`
file/folder that git worktrees have.

solution: use a different (unique) root file. I first tried with flake.nix for instnace but we have several in the tree while is only one "release.json"

* Update flake.nix

Co-authored-by: Austin Horstman <khaneliman12@gmail.com>

---------

Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Matthieu Coudron 2025-04-10 19:57:41 +02:00 committed by GitHub
parent 92266c9a6f
commit 140a7df916
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,14 @@
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
in
{
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixfmt-tree);
formatter = forAllSystems (
system:
nixpkgs.legacyPackages.${system}.nixfmt-tree.override {
settings = {
tree-root-file = "release.json";
};
}
);
packages = forAllSystems (
system: