diff --git a/flake.nix b/flake.nix index 10c04600..d96e1181 100644 --- a/flake.nix +++ b/flake.nix @@ -7,13 +7,16 @@ overlays.default = self: super: { crate2nix = self.callPackage ./default.nix { }; }; - } // flake-utils.lib.eachDefaultSystem (system: let - sources = import ./nix/sources.nix; - pkgs = import sources.nixpkgs { inherit system; }; - in { - packages = rec { - crate2nix = pkgs.callPackage ./default.nix { }; - default = crate2nix; - }; - }); + } // flake-utils.lib.eachDefaultSystem (system: + let + sources = import ./nix/sources.nix; + pkgs = import sources.nixpkgs { inherit system; }; + in + { + formatter = pkgs.nixpkgs-fmt; + packages = rec { + crate2nix = pkgs.callPackage ./default.nix { }; + default = crate2nix; + }; + }); }