nixos: add wasm packages, reorganize systemPackages. vim: wasm syntax, vim-maximizer

This commit is contained in:
2025-01-15 18:41:26 +01:00
parent edcc19e653
commit 7319f95949
3 changed files with 40 additions and 18 deletions

View File

@@ -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

View File

@@ -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>

View File

@@ -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 = {