Dendritic Nix - Community-driven Nix distribution based on the Dendritic pattern.
1{ inputs, ... }:
2{
3 imports = [ inputs.treefmt-nix.flakeModule ];
4 perSystem =
5 { self', ... }:
6 {
7 treefmt = {
8 projectRoot = inputs.dendrix;
9 programs = {
10 nixfmt.enable = true;
11 deadnix.enable = true;
12 nixf-diagnose.enable = true;
13 prettier.enable = true;
14 };
15 settings.on-unmatched = "fatal";
16 settings.global.excludes = [
17 "LICENSE"
18 ];
19 };
20
21 packages.fmt = self'.formatter;
22
23 devshells.default.commands = [
24 {
25 name = "fmt";
26 help = "run code formatter";
27 command = "nix run path:dev#fmt";
28 }
29 ];
30
31 };
32
33}