refactor(nix): expose formatter wrapper in outputs
This commit is contained in:
@@ -45,15 +45,15 @@ let
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
formatter.${system} = formatter;
|
formatter.${system} = formatter.config.build.wrapper;
|
||||||
|
|
||||||
apps.${system} = import ./apps.nix {
|
apps.${system} = import ./apps.nix {
|
||||||
inherit
|
inherit
|
||||||
inputs
|
inputs
|
||||||
lib
|
lib
|
||||||
formatter
|
|
||||||
system
|
system
|
||||||
;
|
;
|
||||||
|
formatter = formatter.config.build.wrapper;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosConfigurations = import ./hosts.nix {
|
nixosConfigurations = import ./hosts.nix {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ inputs, system }:
|
{ inputs, system }:
|
||||||
(inputs.treefmt-nix.lib.evalModule inputs.nixpkgs.legacyPackages.${system} {
|
inputs.treefmt-nix.lib.evalModule inputs.nixpkgs.legacyPackages.${system} {
|
||||||
projectRootFile = "flake.nix";
|
projectRootFile = "flake.nix";
|
||||||
|
|
||||||
programs.nixfmt.enable = true;
|
programs.nixfmt.enable = true;
|
||||||
@@ -7,4 +7,4 @@
|
|||||||
settings.formatter.nixfmt.excludes = [
|
settings.formatter.nixfmt.excludes = [
|
||||||
"configs/nixos/hosts/*/hardware-configuration.nix"
|
"configs/nixos/hosts/*/hardware-configuration.nix"
|
||||||
];
|
];
|
||||||
}).config.build.wrapper
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user