chore: Configure nixfmt
(cherry picked from commit 3ed92195dfcd4c3a86f1d77c464967531851f85c)
This commit is contained in:
parent
e04540d4f2
commit
eba8c06c9d
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
];
|
];
|
||||||
perSystem = { config, pkgs, ... }: {
|
perSystem = { config, pkgs, ... }: {
|
||||||
|
|
||||||
pre-commit.settings.hooks.nixpkgs-fmt.enable = true;
|
pre-commit.settings.hooks.nixfmt-rfc-style.enable = true;
|
||||||
# Temporarily disable rustfmt due to configuration issues
|
# Temporarily disable rustfmt due to configuration issues
|
||||||
# pre-commit.settings.hooks.rustfmt.enable = true;
|
# pre-commit.settings.hooks.rustfmt.enable = true;
|
||||||
pre-commit.settings.settings.rust.cargoManifestPath = "./rust/Cargo.toml";
|
pre-commit.settings.settings.rust.cargoManifestPath = "./rust/Cargo.toml";
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
];
|
];
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgs.rust-analyzer
|
pkgs.rust-analyzer
|
||||||
pkgs.nixpkgs-fmt
|
pkgs.nixfmt-rfc-style
|
||||||
pkgs.rustfmt
|
pkgs.rustfmt
|
||||||
pkgs.pkg-config
|
pkgs.pkg-config
|
||||||
pkgs.clang-tools # clangd
|
pkgs.clang-tools # clangd
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue