refactor(nix): inline formatter evaluation

This commit is contained in:
2026-09-15 23:41:14 -04:00
parent 5256e520c8
commit 0114bedf6e

View File

@@ -1,14 +1,10 @@
{ inputs, system }: { inputs, system }:
let (inputs.treefmt-nix.lib.evalModule inputs.nixpkgs.legacyPackages.${system} {
pkgs = inputs.nixpkgs.legacyPackages.${system}; projectRootFile = "flake.nix";
treefmtEval = inputs.treefmt-nix.lib.evalModule pkgs {
projectRootFile = "flake.nix";
programs.nixfmt.enable = true; programs.nixfmt.enable = true;
settings.formatter.nixfmt.excludes = [ settings.formatter.nixfmt.excludes = [
"configs/nixos/hosts/*/hardware-configuration.nix" "configs/nixos/hosts/*/hardware-configuration.nix"
]; ];
}; }).config.build.wrapper
in
treefmtEval.config.build.wrapper