nixfmt-rf-style is now called just nixfmt

This commit is contained in:
Andrea Ciceri 2024-11-08 10:17:57 +01:00
parent 2a213c6b28
commit 795b5a05ce
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -1,42 +1,27 @@
{ { inputs, self, lib, ... }: {
inputs, imports = [ inputs.treefmt-nix.flakeModule inputs.git-hooks-nix.flakeModule ];
self,
lib,
...
}:
{
imports = [
inputs.treefmt-nix.flakeModule
inputs.git-hooks-nix.flakeModule
];
perSystem = perSystem = { ... }: {
{ ... }: treefmt.config = {
{ projectRootFile = ".git/config";
treefmt.config = { programs = {
projectRootFile = ".git/config"; nixfmt.enable = true;
programs = {
nixfmt-rfc-style.enable = true;
deadnix.enable = false;
};
};
pre-commit.settings.hooks = {
nixfmt-rfc-style.enable = true;
deadnix.enable = false; deadnix.enable = false;
}; };
}; };
flake.checks = pre-commit.settings.hooks = {
let nixfmt.enable = true;
build = _: nc: nc.config.system.build.toplevel; deadnix.enable = false;
in
{
x86_64-linux = lib.mapAttrs build {
inherit (self.nixosConfigurations) picard;
};
aarch64-linux = lib.mapAttrs build {
inherit (self.nixosConfigurations) sisko; # pbp;
};
}; };
};
flake.checks = let build = _: nc: nc.config.system.build.toplevel;
in {
x86_64-linux =
lib.mapAttrs build { inherit (self.nixosConfigurations) picard; };
aarch64-linux = lib.mapAttrs build {
inherit (self.nixosConfigurations) sisko; # pbp;
};
};
} }