refactor(nix): pass formatter to style app

This commit is contained in:
2026-09-15 23:54:33 -04:00
parent 527152354e
commit f8b7319756
2 changed files with 5 additions and 3 deletions

View File

@@ -1,7 +1,8 @@
{ {
inputs, inputs,
lib, lib,
formattingCheck, formatter,
self,
system, system,
}: }:
let let
@@ -17,7 +18,7 @@ in
pkgs.deadnix pkgs.deadnix
]; ];
text = '' text = ''
test -e ${formattingCheck} test -e ${formatter.config.build.check self}
statix check . statix check .
deadnix --fail --no-lambda-pattern-names --no-underscore . deadnix --fail --no-lambda-pattern-names --no-underscore .
''; '';

View File

@@ -51,9 +51,10 @@ in
inherit inherit
inputs inputs
lib lib
formatter
self
system system
; ;
formattingCheck = formatter.config.build.check self;
}; };
nixosConfigurations = import ./hosts.nix { nixosConfigurations = import ./hosts.nix {