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

View File

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