style(nix): move formatter to the top

This commit is contained in:
b4mbus
2024-06-09 13:18:19 +02:00
parent 48c89039a6
commit c09460585a

View File

@@ -22,6 +22,8 @@
}: let
packageToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package;
in {
formatter = pkgs.alejandra;
_module.args = {
pkgs = import inputs.nixpkgs {
inherit system;
@@ -29,8 +31,6 @@
};
};
formatter = pkgs.alejandra;
devShells = pkgs.callPackages ./shell.nix {inherit packageToml self';};
packages.default = pkgs.callPackage ./default.nix {inherit packageToml;};