aboutsummaryrefslogtreecommitdiff
path: root/root/nix/_treefmt-base.nix
diff options
context:
space:
mode:
authorvkcku <[email protected]>2026-06-01 08:21:20 +0530
committervkcku <[email protected]>2026-06-01 08:21:20 +0530
commitb911adccfdf598d7130ca017e677f5b58f476299 (patch)
treee6f3d56e088ef1e7b2b48fa06729d3698ffb9f9e /root/nix/_treefmt-base.nix
parentroot: initial commit (diff)
root: setup nix
monorepo-revid: f83eede55beb9a636ce34eead83d4d5fce288b51
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
+ };
+}