nix/home/config/editorconfig/default.nix
2024-11-06 01:07:30 +03:00

27 lines
458 B
Nix

{
pkgs,
...
}: {
file = (pkgs.formats.iniWithGlobalSection { }).generate "EditorconfigConfig" {
globalSection = {
root = true;
};
sections = {
"*" = {
charset = "utf-8";
end_of_line = "lf";
indent_size = 8;
indent_style = "tab";
insert_final_newline = false;
trim_trailing_whitespace = true;
};
"*.nix" = {
indent_size = 2;
};
"*.{lua,kt,kts,rs,py}" = {
indent_size = 4;
};
};
};
}