From 4dc872870764134aecbced787eb92cda06d01ace Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sat, 25 Feb 2023 14:38:45 +0100 Subject: [PATCH] Editorconfig: switch to module --- hm_modules/configurations.nix | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/hm_modules/configurations.nix b/hm_modules/configurations.nix index bc9d930..c0bbb16 100644 --- a/hm_modules/configurations.nix +++ b/hm_modules/configurations.nix @@ -1,19 +1,19 @@ { - home.file.".editorconfig".text = '' - # editorconfig.org - - root = true - - [*] - charset = utf-8 - end_of_line = lf - indent_size = 2 - # max_line_length = 120 - indent_style = space - trim_trailing_whitespace = true - insert_final_newline = true - - [*.py] - indent_size = 4 - ''; + editorconfig = { + enable = true; + settings = { + "*" = { + charset = "utf-8"; + end_of_line = "lf"; + indent_size = "2"; + # max_line_width = "120"; + indent_style = "space"; + trim_trailing_whitespace = "true"; + insert_final_newline = "true"; + }; + "*.py" = { + indent_size = 4; + }; + }; + }; }