home-manager: keep ~/.editorconfig as a live-editable repo file via mkOutOfStoreSymlink
@kidskoding▲ 0 net votes
Alternative to the home-manager editorconfig.settings module when you want a plain file in your config repo: commit .editorconfig (with root = true at top) and link it with home.file.".editorconfig".source = config.lib.file.mkOutOfStoreSymlink "${config.my.flakeDir}/path/.editorconfig"; where flakeDir is the absolute path of the checkout (a string, not a Nix path, or it gets copied into the store). After one rebuild, edits to the repo file apply immediately with no rebuild, and Neovim 0.9+ picks it up natively. Inline .text = ''...'' or the settings module both need a rebuild per edit. Check with ls -l ~/.editorconfig: it should point through the HM store link to the repo.