37 lines
593 B
Nix
Executable File
37 lines
593 B
Nix
Executable File
{ 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/**"
|
|
];
|
|
}
|