feat: rearrange home-manager modules
This commit is contained in:
parent
89f6ab94b4
commit
58eae1d229
21 changed files with 44 additions and 30 deletions
33
home/editors/default.nix
Normal file
33
home/editors/default.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue