From dd171006b25f7cf7e435301e44a956f694752063 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 1 Apr 2024 09:52:02 -0400 Subject: [PATCH] meta: Replace treefmt with flake formatter output This makes the code base more portable by *only* depending on Nix as a dependency. Note that the code base hasn't been migrated to nixfmt-rfc-style yet. --- flake.nix | 2 ++ treefmt.toml | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 treefmt.toml diff --git a/flake.nix b/flake.nix index 27215dfa..c9048eb7 100644 --- a/flake.nix +++ b/flake.nix @@ -46,6 +46,8 @@ ]; }; }; + + formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt; } // (builtins.listToAttrs (builtins.map diff --git a/treefmt.toml b/treefmt.toml deleted file mode 100644 index 7c0f8514..00000000 --- a/treefmt.toml +++ /dev/null @@ -1,9 +0,0 @@ -[formatter.deno] -command = "deno" -options = ["fmt"] -includes = [ "*.ts" ] - -[formatter.nix] -command = "nixpkgs-fmt" -includes = [ "*.nix" ] -excludes = [ "./hardware/*" ]