From 86f09b226b15cb195fd5bef3b7671244d93eb921 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Sat, 6 Jul 2024 07:04:23 +0200 Subject: Set up treefmt --- flake.nix | 3 +++ treefmt.toml | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 treefmt.toml diff --git a/flake.nix b/flake.nix index 8c46e88..170f9de 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,9 @@ git gitui sops + + # Formatting + treefmt nixfmt-rfc-style ]; }; diff --git a/treefmt.toml b/treefmt.toml new file mode 100644 index 0000000..13bf952 --- /dev/null +++ b/treefmt.toml @@ -0,0 +1,6 @@ +[global] +excludes = ["secrets/*", ".*ignore", ".git*", "*.lock"] + +[formatter.nix] +command = "nixfmt" +includes = [ "*.nix" ] -- cgit v1.3.1