aboutsummaryrefslogtreecommitdiff
path: root/root/nix/_treefmt-base.nix
diff options
context:
space:
mode:
Diffstat (limited to 'root/nix/_treefmt-base.nix')
-rw-r--r--root/nix/_treefmt-base.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/root/nix/_treefmt-base.nix b/root/nix/_treefmt-base.nix
new file mode 100644
index 0000000..d613092
--- /dev/null
+++ b/root/nix/_treefmt-base.nix
@@ -0,0 +1,17 @@
+/**
+ The base treefmt configuration that all projects should import
+ from. This will include a consistent configuration for most, if not all,
+ formatters/linters. This will NOT enable the formatters/linters except
+ for a few that are used across all projects (nixfmt, typos etc.).
+*/
+{
+ projectRootFile = "README.md";
+
+ programs = {
+ # keep-sorted start block=yes
+ keep-sorted.enable = true;
+ nixfmt.enable = true;
+ typos.enable = true;
+ # keep-sorted end
+ };
+}