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:
parent
92266c9a6f
commit
140a7df916
1 changed files with 8 additions and 1 deletions
|
|
@ -48,7 +48,14 @@
|
||||||
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
|
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
|
||||||
in
|
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 (
|
packages = forAllSystems (
|
||||||
system:
|
system:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue