We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4d4150 commit 6f9a974Copy full SHA for 6f9a974
1 file changed
flake-parts/flake.nix
@@ -4,7 +4,7 @@
4
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
5
flake-parts.url = "github:hercules-ci/flake-parts";
6
systems.url = "github:nix-systems/default";
7
- # treefmt-nix.url = "github:numtide/treefmt-nix";
+ treefmt-nix.url = "github:numtide/treefmt-nix";
8
};
9
10
outputs =
@@ -14,7 +14,7 @@
14
15
imports = [
16
# inputs.flake-parts.flakeModules.partitions
17
- # inputs.treefmt-nix.flakeModule
+ inputs.treefmt-nix.flakeModule
18
];
19
20
# partitions.dev = {
@@ -44,6 +44,14 @@
44
devShells.default = pkgs.mkShell {
45
packages = [ ];
46
47
+
48
+ treefmt = {
49
+ projectRootFile = "flake.nix";
50
+ programs = {
51
+ nixfmt.enable = true;
52
+ zizmor.enable = true;
53
+ };
54
55
56
57
}
0 commit comments