-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
190 lines (165 loc) · 4.75 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
{ config, pkgs, ... }:
let
cozy-drive-local = pkgs.callPackage CozyDrive/default.nix {};
in {
nixpkgs.config.allowUnfree = true;
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "simara";
home.homeDirectory = "/home/simara";
home.packages = [
pkgs.htop
# pkgs.nodejs
pkgs.brave
pkgs.powerline-fonts
pkgs.powerline-symbols
pkgs.nix-zsh-completions
pkgs.zsh-powerlevel9k
pkgs.libreoffice
pkgs.spotify
pkgs.joplin
pkgs.joplin-desktop
pkgs.postman
pkgs.qgis
pkgs.dbeaver
pkgs.signal-desktop
pkgs.whatsapp-for-linux
pkgs.gimp
# pkgs.cozy-drive
pkgs.ihaskell
cozy-drive-local
# pkgs.scribus
# pkgs.haskell-language-server
];
programs.fish.enable = true;
programs.git = {
enable = true;
userName = "Simarra";
userEmail = "loic.martel@protonmail.com";
};
programs.tmux = {
enable = true;
terminal = "tmux-256color";
shortcut = "u";
};
programs.firefox = {
enable = true;
profiles.default = {
id = 0;
settings = {
"browser.contentblocking.category" = "strict";
"browser.search.defaultenginename" = "Qwant";
"browser.search.selectedEngine" = "Qwant";
"browser.urlbar.placeholderName" = "Qwant";
"browser.search.region" = "FR";
"distribution.searchplugins.defaultLocale" = "fr-FR";
"general.useragent.locale" = "fr-FR";
"browser.bookmarks.showMobileBookmarks" = true;
"browser.search.hiddenOneOffs" =
"Google,Yahoo,Bing,Amazon.com,Twitter";
"privacy.donottrackheader.enabled" = true;
"privacy.donottrackheader.value" = 1;
"extensions.update.enabled" = false;
};
};
};
# # HIE overlay
# self: super:
# let
# all-hies = import (fetchTarball "https://github.com/haskell/haskell-language-server/tarball/master") {};
# in {
# hies = all-hies.selection { selector = p: { inherit (p) ghc865 ghc844; }; };
# }
programs.vscode = {
enable = true;
# haskell = {
# enable = true;
# hie = {
# enable = true;
# executablePath = "${pkgs.hies}/bin/hie-wrapper";
# };
# };
package = pkgs.vscode;
extensions = (with pkgs.vscode-extensions; [
# ms-python.python
# ms-azuretools.vscode-docker
# eamodio.gitlens
# vscodevim.vim
# bbenoist.Nix
# justusadam.language-haskell
# haskell.haskell
]) ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "vscode-language-pack-fr";
publisher = "MS-CEINTL";
version = "1.60.4";
sha256 = "0r6a1v14z5mryrhqwhq9li1xc282x57f75yzbid2z0dnnz3af4yg";
}
{
name = "remote-containers";
publisher = "ms-vscode-remote";
version = "0.195.0";
sha256 = "43c66aa22c6205199c99bbb94ebf9992df2d427524b1fddb3d08f0c163c9332c";
}
];
userSettings = {
"terminal.integrated.fontFamily" = "Hack";
"editor.cursorBlinking" = "smooth";
"vim.easymotion" = true;
};
};
programs = {
neovim = {
enable =true;
vimAlias=true;
viAlias=true;
withPython3 = true;
plugins = with pkgs.vimPlugins; [
fugitive
gitgutter
vim-nix
ayu-vim
vim-airline
vim-airline-themes
haskell-vim
];
extraConfig = ''
let g:airline#extensions#tabline#enabled = 1
set laststatus=2
let g:airline_theme='fruit_punch'
autocmd BufDelete * call airline#extensions#tabline#buflist#invalidate()
let g:airline_powerline_fonts = 1
colorscheme ayu
let ayucolor="mirage"
set termguicolors
set wrap
set nu
syntax on
set title
set hidden
let mapleader=","
" Arrows keys are for weaks.
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>
" Remap excape key
inoremap jj <Esc>
:tnoremap <Esc> <C-\><C-n>
map <F2> :Lexplore<CR>
'';
};
};
# xdg.configFile."nvim/coc-settings.json".text = builtins.readFile ./coc-settings.json;
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "21.11";
}