Add flake

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-08-05 21:46:55 +02:00
parent bc3e151a88
commit 5506c3de30
4 changed files with 152 additions and 0 deletions

36
treefmt.nix Executable file
View File

@@ -0,0 +1,36 @@
{ pkgs, ... }:
{
projectRootFile = "flake.nix";
programs = {
nixfmt = {
enable = true;
strict = true;
};
taplo.enable = true;
prettier = {
enable = true;
settings = {
plugins = [
"${pkgs.prettier-plugin-go-template}/lib/node_modules/prettier-plugin-go-template/lib/index.js"
];
overrides = [
{
files = [ "*.html" ];
options.parser = "go-template";
}
];
};
};
};
settings.global.excludes = [
".envrc"
"public/**"
"static/**"
];
}