fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Loïc Reyniereditorconfig: add module (#3204)de94878b

master
568 B28 linesraw
1{ ... }:
2
3{
4  editorconfig = {
5    enable = true;
6    settings = {
7      "*" = {
8        charset = "utf-8";
9        end_of_line = "lf";
10        trim_trailing_whitespace = true;
11        insert_final_newline = true;
12        max_line_width = 78;
13        indent_style = "space";
14      };
15      "*.md" = {
16        indent_size = "unset";
17        trim_trailing_whitespace = false;
18      };
19    };
20  };
21
22  nmt.script = ''
23    assertFileExists home-files/.editorconfig
24    assertFileContent home-files/.editorconfig ${
25      ./editorconfig-simple-config-expected
26    }
27  '';
28}