Skip to content

Commit

Permalink
make treefmt.projectRoot as inputs.services-flake
Browse files Browse the repository at this point in the history
  • Loading branch information
conscious-puppet committed Feb 19, 2024
1 parent 57315c3 commit ae1a25d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions dev/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dev/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
flake-parts.url = "github:hercules-ci/flake-parts";
flake-root.url = "github:srid/flake-root";
treefmt-nix.url = "github:numtide/treefmt-nix";
services-flake.url = "path:../.";
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
Expand All @@ -14,7 +15,7 @@
];
perSystem = { pkgs, lib, config, ... }: {
treefmt = {
projectRoot = ../.;
projectRoot = inputs.services-flake;
projectRootFile = "dev/flake.nix";
programs = {
nixpkgs-fmt.enable = true;
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
dir = "./test";
};
dev = {
inherit overrideInputs;
dir = "./dev";
};
doc = {
Expand Down

0 comments on commit ae1a25d

Please sign in to comment.