Skip to content

Commit be21cda

Browse files
Mic92mergify[bot]
authored andcommitted
use LICENSE.md for project root detection in flake-module.nix
this fixes the project with juju or other git alternatives.
1 parent 47936ff commit be21cda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix/treefmt/flake-module.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{ pkgs, ... }:
66
{
77
treefmt = {
8-
projectRootFile = ".git/config";
8+
projectRootFile = "LICENSE.md";
99
programs.nixfmt.enable = pkgs.lib.meta.availableOn pkgs.stdenv.buildPlatform pkgs.nixfmt-rfc-style.compiler;
1010
programs.nixfmt.package = pkgs.nixfmt-rfc-style;
1111
programs.shellcheck.enable = true;

0 commit comments

Comments
 (0)