@@ -1,5 +1,5 @@
11# EditorConfig configuration for nixpkgs
2−# http://EditorConfig.org
2+# https://EditorConfig.org
33
44# Top-most EditorConfig file
55root = true
@@ -19,18 +19,56 @@ trim_trailing_whitespace = unset
1919
2020# see https://nixos.org/nixpkgs/manual/#chap-conventions
2121
22−# Match nix/perl/python/ruby/shell/docbook files, set indent to spaces
23−[*.{nix,pl,py,rb,sh,xml}]
22+# Match json/lockfiles/markdown/nix/perl/python/ruby/shell/docbook files, set indent to spaces
23+[*.{json,lock,md,nix,pl,pm,py,rb,sh,xml}]
2424indent_style = space
2525
2626# Match docbook files, set indent width of one
2727[*.xml]
2828indent_size = 1
2929
30−# Match nix/ruby files, set indent width of two
31−[*.{nix,rb}]
30+# Match json/lockfiles/markdown/nix/ruby files, set indent width of two
31+[*.{json,lock,md,nix,rb}]
3232indent_size = 2
3333
3434# Match perl/python/shell scripts, set indent width of four
35−[*.{pl,py,sh}]
35+[*.{pl,pm,py,sh}]
3636indent_size = 4
37+
38+# Match gemfiles, set indent to spaces with width of two
39+[Gemfile]
40+indent_size = 2
41+indent_style = space
42+
43+# Disable file types or individual files
44+# some of these files may be auto-generated and/or require significant changes
45+
46+[*.lock]
47+indent_size = unset
48+
49+[gemset.nix]
50+insert_final_newline = unset
51+
52+[pkgs/applications/editors/emacs-modes/recipes-archive-melpa.json]
53+indent_size = unset
54+
55+[pkgs/development/lisp-modules/quicklisp-to-nix.nix]
56+indent_size = unset
57+
58+[pkgs/development/haskell-modules/hackage-packages.nix]
59+indent_style = unset
60+indent_size = unset
61+trim_trailing_whitespace = unset
62+
63+[pkgs/development/mobile/androidenv/generated/{addons,packages}.nix]
64+trim_trailing_whitespace = unset
65+
66+[pkgs/development/node-packages/*-v*.nix]
67+insert_final_newline = unset
68+
69+[pkgs/servers/dict/wordnet_structures.py]
70+indent_size = unset
71+trim_trailing_whitespace = unset
72+
73+[pkgs/top-level/perl-packages.nix]
74+indent_size = unset