Initial commit: Modular Clang C++ Nix environment and problem files

This commit is contained in:
2026-03-14 23:25:02 +08:00
commit f5e7baa1bd
9 changed files with 128 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
{ pkgs, treefmt-nix }:
treefmt-nix.lib.evalModule pkgs {
projectRootFile = "flake.nix";
# Configure individual formatters
programs = {
# Nix formatter
nixpkgs-fmt.enable = true;
# C++ formatter
clang-format.enable = true;
};
# Optional settings
settings.formatter.clang-format.includes = [ "*.cpp" "*.h" "*.hpp" "*.c" ];
}