flake.nix: enable nixfmt-rfc-style hook and formatter
This commit is contained in:
@@ -153,6 +153,7 @@
|
|||||||
|
|
||||||
# nix
|
# nix
|
||||||
deadnix.enable = true;
|
deadnix.enable = true;
|
||||||
|
nixfmt-rfc-style.enable = true;
|
||||||
|
|
||||||
# python
|
# python
|
||||||
pyright.enable = true;
|
pyright.enable = true;
|
||||||
@@ -189,5 +190,7 @@
|
|||||||
shellHook = self.checks.${system}.pre-commit.shellHook;
|
shellHook = self.checks.${system}.pre-commit.shellHook;
|
||||||
};
|
};
|
||||||
devShell.${system} = self.devShells.${system}.default; # compatibility
|
devShell.${system} = self.devShells.${system}.default; # compatibility
|
||||||
|
|
||||||
|
formatter.${system} = pkgs.nixfmt-tree;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user