refactor(nix): inline formatter evaluation
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user