mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
nixos: add wasm packages, reorganize systemPackages. vim: wasm syntax, vim-maximizer
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
DEVICE=$1
|
||||
|
||||
if [ -z $DEVICE ] ; then
|
||||
echo "missing 1st argument (DEVICE), ie. the name of the device where the backup is being done"
|
||||
echo "missing 1st argument (DEVICE), ie. the name of the device where the backup is being done (eg. thinkpad, surface)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
12
init.vim
12
init.vim
@@ -66,7 +66,6 @@ Plug 'iden3/vim-circom-syntax'
|
||||
" LaTeX support. It needs latexmk & zathura
|
||||
Plug 'lervag/vimtex'
|
||||
|
||||
|
||||
" deoplete
|
||||
Plug 'Shougo/deoplete.nvim'
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
@@ -111,6 +110,8 @@ Plug 'srcery-colors/srcery-vim'
|
||||
Plug 'rakr/vim-one'
|
||||
Plug 'morhetz/gruvbox'
|
||||
|
||||
Plug 'szw/vim-maximizer'
|
||||
|
||||
call plug#end()
|
||||
|
||||
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||
@@ -245,6 +246,12 @@ augroup filetypedetect
|
||||
au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python
|
||||
augroup END
|
||||
|
||||
"" wat (wasm) syntax
|
||||
autocmd BufNewFile,BufReadPost *.wat setlocal filetype=wast
|
||||
|
||||
" maximize current split or return to previous
|
||||
noremap <C-w>m :MaximizerToggle<CR>
|
||||
|
||||
" for file watching
|
||||
set backupcopy=yes
|
||||
|
||||
@@ -252,9 +259,6 @@ set backupcopy=yes
|
||||
vnoremap <leader>y "+y
|
||||
vnoremap <leader>p "+p
|
||||
|
||||
" disable mouse
|
||||
set mouse=
|
||||
|
||||
" shortcut for theme change
|
||||
nnoremap <F9> :colorscheme gruvbox \| set background=dark \| highlight normal ctermbg=0 guibg=#000000 <CR>
|
||||
nnoremap <F10> :colorscheme one \| set background=light \| highlight normal guibg=#ffffff<CR>
|
||||
|
||||
@@ -23,9 +23,7 @@
|
||||
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# minimal
|
||||
vim
|
||||
neovim
|
||||
# utilities
|
||||
wget
|
||||
tmux
|
||||
git
|
||||
@@ -33,29 +31,46 @@
|
||||
tig
|
||||
mosh
|
||||
bat
|
||||
lf
|
||||
ripgrep
|
||||
fzf
|
||||
screenfetch
|
||||
htop
|
||||
jq
|
||||
keynav
|
||||
unzip
|
||||
gnutar
|
||||
xorg.xmodmap # keyboard remapping
|
||||
xfce.xfce4-screenshooter
|
||||
|
||||
# code editors
|
||||
vim
|
||||
neovim
|
||||
vimHugeX # to make clipboard work in vim
|
||||
xclip # to make clipboard work in neovim
|
||||
|
||||
# terminals
|
||||
alacritty
|
||||
kitty
|
||||
|
||||
# pdf
|
||||
zathura
|
||||
mate.atril
|
||||
xclip # to make clipboard work in neovim
|
||||
xorg.xmodmap
|
||||
xfce.xfce4-screenshooter
|
||||
|
||||
# file explorers/managers
|
||||
lf
|
||||
yazi
|
||||
xfce.thunar
|
||||
xfce.xfconf # needed to save preferences of thunar
|
||||
xfce.ristretto
|
||||
xfce.tumbler # for thumbnails of imgs
|
||||
pavucontrol
|
||||
jq
|
||||
keynav
|
||||
|
||||
# other
|
||||
# media
|
||||
pavucontrol
|
||||
mpv
|
||||
vlc
|
||||
feh
|
||||
kolourpaint
|
||||
calibre
|
||||
|
||||
# browsers
|
||||
firefox
|
||||
@@ -81,12 +96,15 @@
|
||||
openssl
|
||||
stdenv
|
||||
rustup
|
||||
wabt # wasm binary toolkit
|
||||
wasmedge # to execute wasm binaries
|
||||
sage
|
||||
go
|
||||
python3
|
||||
(python3.withPackages(ps: with ps; [
|
||||
matplotlib numpy
|
||||
]))
|
||||
pipx
|
||||
nodejs
|
||||
|
||||
];
|
||||
|
||||
environment.variables = {
|
||||
|
||||
Reference in New Issue
Block a user