initial commit

This commit is contained in:
2025-10-14 12:29:46 +02:00
parent 0439bb0ff7
commit 903704e4d7
99 changed files with 8495 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
{ lib, config, ... }:
{
options = {
modules.editorconfig.enable = lib.mkEnableOption "enables editorconfig";
};
config = lib.mkIf config.modules.editorconfig.enable {
editorconfig = {
enable = true;
settings = {
"*" = {
indent_style = "tab";
indent_size = 4;
trim_trailing_whitespace = true;
insert_final_newline = true;
};
"*.nix" = {
indent_style = "space";
indent_size = 2;
};
"*.py" = {
indent_style = "space";
indent_size = 4;
};
"*.r" = {
indent_style = "space";
indent_size = 2;
};
"*.R" = {
indent_style = "space";
indent_size = 2;
};
"*.yaml" = {
indent_style = "space";
indent_size = 4;
};
"*.yml" = {
indent_style = "space";
indent_size = 4;
};
"compose.yml" = {
indent_style = "space";
indent_size = 2;
};
"compose.yaml" = {
indent_style = "space";
indent_size = 2;
};
"*.c" = {
indent_style = "space";
indent_size = 2;
};
};
};
};
}