feat(flake): switch to treefmt-nix
All checks were successful
/ check (push) Successful in 24s
/ build (audiomenu) (push) Successful in 2s
/ build (docs) (push) Successful in 2s
/ build (jpassmenu) (push) Successful in 2s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 2s
/ build (nvim) (push) Successful in 2s
All checks were successful
/ check (push) Successful in 24s
/ build (audiomenu) (push) Successful in 2s
/ build (docs) (push) Successful in 2s
/ build (jpassmenu) (push) Successful in 2s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 2s
/ build (nvim) (push) Successful in 2s
This allows me to remove all checks and replace them with treefmt-nix
This commit is contained in:
parent
f2530d1010
commit
002c74ca1b
4 changed files with 22 additions and 32 deletions
|
@ -4,7 +4,8 @@ let
|
|||
in
|
||||
{
|
||||
imports = [
|
||||
./checks.nix
|
||||
inputs.treefmt-nix.flakeModule
|
||||
|
||||
./devshells.nix
|
||||
./docs.nix
|
||||
./example-vm.nix
|
||||
|
@ -15,11 +16,19 @@ in
|
|||
];
|
||||
|
||||
perSystem =
|
||||
{ system, pkgs, ... }:
|
||||
{ system, ... }:
|
||||
{
|
||||
_module.args.pkgs = import inputs.nixpkgs { inherit system overlays; };
|
||||
|
||||
# Nix files formatter (run `nix fmt`)
|
||||
formatter = pkgs.nixfmt-rfc-style;
|
||||
# Setup formatters
|
||||
treefmt = {
|
||||
projectRootFile = "flake.nix";
|
||||
programs = {
|
||||
nixfmt.enable = true;
|
||||
rustfmt.enable = true;
|
||||
statix.enable = true;
|
||||
typos.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue