diff --git a/flake.nix b/flake.nix
index 384936d4fb61f0af8079dd2c3ee1e75049539b7d..f359c5e6e087c26b28ad1073763eda4334fe9455 100644
--- a/flake.nix
+++ b/flake.nix
@@ -27,7 +27,7 @@
 
         devShell = pkgs.mkShell {
           buildInputs = with pkgs; [openssl];
-          nativeBuildInputs = with pkgs; [rustc cargo rust-analyzer pkg-config clippy];
+          nativeBuildInputs = with pkgs; [rustc cargo rustfmt rust-analyzer pkg-config clippy];
         };
 
         formatter = nixpkgs.legacyPackages.${system}.alejandra;