mirror of
https://github.com/nix-community/home-manager
synced 2024-12-21 02:23:16 +00:00
29 lines
568 B
Nix
29 lines
568 B
Nix
|
{ ... }:
|
||
|
|
||
|
{
|
||
|
editorconfig = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
"*" = {
|
||
|
charset = "utf-8";
|
||
|
end_of_line = "lf";
|
||
|
trim_trailing_whitespace = true;
|
||
|
insert_final_newline = true;
|
||
|
max_line_width = 78;
|
||
|
indent_style = "space";
|
||
|
};
|
||
|
"*.md" = {
|
||
|
indent_size = "unset";
|
||
|
trim_trailing_whitespace = false;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-files/.editorconfig
|
||
|
assertFileContent home-files/.editorconfig ${
|
||
|
./editorconfig-simple-config-expected
|
||
|
}
|
||
|
'';
|
||
|
}
|