From 63b4f810c2d9e9d61e48636c6c0c9846c13cd586 Mon Sep 17 00:00:00 2001 From: Lucas Bergman Date: Mon, 19 Feb 2024 17:50:39 -0600 Subject: [PATCH] maint: Set formatter Nix flake output so `nix fmt` works I've idly thought about making the formatter a derivation that runs alejandra over Nix code, then rustfmt over Rust code, etc--so that just running `nix fmt` in the root cleans up everything--but I haven't made that work yet. --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 09901b3..b38c034 100644 --- a/flake.nix +++ b/flake.nix @@ -45,6 +45,7 @@ }; in { packages.default = heracles; + formatter = pkgs.alejandra; }) // { nixosModule = {