6efdad5e66
* small typo on the flake description * crane went full lib mode so it doesn't have any inputs to override * `treefmt` warns on `nixfmt-rfc-style` as its `nixfmt` module is also `nixfmt-rfc-style`, switch to the `nixfmt` module. * `pre-commit-hooks` uses `nixfmt-classic` when requesting `nixfmt` so we need to filter out `nixfmt` and enable `nixfmt-rfc-style` manually. * there was an unneeded with statement warning from `nixd` Signed-off-by: Jalil David Salame Messina <jalil.salame@gmail.com>
21 lines
550 B
Nix
21 lines
550 B
Nix
# SPDX-FileCopyrightText: 2024 Christina Sørensen
|
|
# SPDX-FileContributor: Christina Sørensen
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
{
|
|
projectRootFile = "Cargo.toml";
|
|
programs = {
|
|
nixfmt.enable = true; # nix
|
|
statix.enable = true; # nix static analysis
|
|
deadnix.enable = true; # find dead nix code
|
|
rustfmt.enable = true; # rust
|
|
shellcheck.enable = true; # bash/shell
|
|
taplo.enable = false; # toml
|
|
yamlfmt.enable = true; # yaml
|
|
};
|
|
settings = {
|
|
formatter = {
|
|
shellcheck.excludes = [ ".envrc" ];
|
|
};
|
|
};
|
|
}
|