fix(nix): make style app check-only

This commit is contained in:
2026-09-15 23:52:05 -04:00
parent 9caf79d623
commit 527152354e
2 changed files with 3 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
{
inputs,
lib,
formatter,
formattingCheck,
system,
}:
let
@@ -13,12 +13,11 @@ in
program = lib.getExe (pkgs.writeShellApplication {
name = "style-check";
runtimeInputs = [
formatter
pkgs.statix
pkgs.deadnix
];
text = ''
treefmt --fail-on-change
test -e ${formattingCheck}
statix check .
deadnix --fail --no-lambda-pattern-names --no-underscore .
'';

View File

@@ -53,7 +53,7 @@ in
lib
system
;
formatter = formatter.config.build.wrapper;
formattingCheck = formatter.config.build.check self;
};
nixosConfigurations = import ./hosts.nix {