-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
75 lines (71 loc) · 2.41 KB
/
home.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{ pkgs, ...}: {
# Packages
home.packages = with pkgs; [
# Tools I like to use
ripgrep
wget
jq
# For neovim
nodejs
# Rust Stuff
cargo
rustc
gcc
openssl.dev
];
# Git
programs.git = {
enable = true;
userName = "file_magic";
userEmail = "[email protected]";
extraConfig = {
init.defaultBranch = "main";
pull.rebase = true;
};
};
# NeoVim Nightly
nixpkgs.overlays = [
(import (builtins.fetchTarball {
url = https://github.com/nix-community/neovim-nightly-overlay/archive/master.tar.gz;
}))
];
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
package = pkgs.neovim-nightly;
extraConfig = ''
filetype plugin indent on
set tabstop=4 softtabstop=4 shiftwidth=4 expandtab smarttab autoindent
set incsearch ignorecase smartcase hlsearch
set wildmode=longest,list,full wildmenu
set ruler laststatus=2 showcmd showmode
set list listchars=trail:»,tab:»-
set fillchars+=vert:\
set wrap breakindent
set encoding=utf-8
set textwidth=0
set hidden
set number
set title
'';
plugins = with pkgs.vimPlugins; [
vim-surround
coc-nvim
coc-git
coc-highlight
coc-python
coc-rls
coc-vetur
coc-yaml
coc-html
coc-json
coc-rust-analyzer
vim-nix
vimtex
fzf-vim
nerdtree
rainbow
];
};
}