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 }:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
treefmtEval = inputs.treefmt-nix.lib.evalModule pkgs {
projectRootFile = "flake.nix";
(inputs.treefmt-nix.lib.evalModule inputs.nixpkgs.legacyPackages.${system} {
projectRootFile = "flake.nix";
programs.nixfmt.enable = true;
programs.nixfmt.enable = true;
settings.formatter.nixfmt.excludes = [
"configs/nixos/hosts/*/hardware-configuration.nix"
];
};
in
treefmtEval.config.build.wrapper
settings.formatter.nixfmt.excludes = [
"configs/nixos/hosts/*/hardware-configuration.nix"
];
}).config.build.wrapper