flake-modules: drop flake-root

treefmt isn't actually using flake-root to find the flake's root; it
does it itself.

All we were doing was passing flake-root's default `projectRootFile` to
treefmt, which is `"flake.nix"`;
This commit is contained in:
Matt Sturgeon 2024-06-04 17:35:37 +01:00
parent 77d4e909f8
commit ec78d2e1ab
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
4 changed files with 1 additions and 20 deletions

View file

@ -12,7 +12,7 @@
formatter = config.treefmt.build.wrapper;
treefmt.config = {
inherit (config.flake-root) projectRootFile;
projectRootFile = "flake.nix";
package = pkgs.treefmt;
programs = {