feat: rearrange home-manager modules

This commit is contained in:
Felix Schröter 2020-03-13 19:41:55 +01:00 committed by Felix Schroeter
parent 89f6ab94b4
commit 58eae1d229
21 changed files with 44 additions and 30 deletions

33
home/editors/default.nix Normal file
View file

@ -0,0 +1,33 @@
{ config, pkgs, ... }:
{
imports = [
./neovim.nix
./emacs.nix
./vscode.nix
];
home.packages = with pkgs; [
fzf
ripgrep
];
home.sessionVariables = with pkgs; {
EDITOR = "nvim";
FZF_DEFAULT_COMMAND = "${ripgrep}/bin/rg --files --hidden";
};
home.file.".editorconfig".text = ''
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
'';
}