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 DEVICE=$1
if [ -z $DEVICE ] ; then 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 exit 1
fi fi

View File

@@ -66,7 +66,6 @@ Plug 'iden3/vim-circom-syntax'
" LaTeX support. It needs latexmk & zathura " LaTeX support. It needs latexmk & zathura
Plug 'lervag/vimtex' Plug 'lervag/vimtex'
" deoplete " deoplete
Plug 'Shougo/deoplete.nvim' Plug 'Shougo/deoplete.nvim'
let g:deoplete#enable_at_startup = 1 let g:deoplete#enable_at_startup = 1
@@ -111,6 +110,8 @@ Plug 'srcery-colors/srcery-vim'
Plug 'rakr/vim-one' Plug 'rakr/vim-one'
Plug 'morhetz/gruvbox' Plug 'morhetz/gruvbox'
Plug 'szw/vim-maximizer'
call plug#end() call plug#end()
let $NVIM_TUI_ENABLE_TRUE_COLOR=1 let $NVIM_TUI_ENABLE_TRUE_COLOR=1
@@ -245,6 +246,12 @@ augroup filetypedetect
au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python
augroup END 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 " for file watching
set backupcopy=yes set backupcopy=yes
@@ -252,9 +259,6 @@ set backupcopy=yes
vnoremap <leader>y "+y vnoremap <leader>y "+y
vnoremap <leader>p "+p vnoremap <leader>p "+p
" disable mouse
set mouse=
" shortcut for theme change " shortcut for theme change
nnoremap <F9> :colorscheme gruvbox \| set background=dark \| highlight normal ctermbg=0 guibg=#000000 <CR> 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> nnoremap <F10> :colorscheme one \| set background=light \| highlight normal guibg=#ffffff<CR>

View File

@@ -23,9 +23,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# minimal # utilities
vim
neovim
wget wget
tmux tmux
git git
@@ -33,29 +31,46 @@
tig tig
mosh mosh
bat bat
lf
ripgrep ripgrep
fzf fzf
screenfetch screenfetch
htop 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 alacritty
kitty
# pdf
zathura zathura
mate.atril mate.atril
xclip # to make clipboard work in neovim
xorg.xmodmap # file explorers/managers
xfce.xfce4-screenshooter lf
yazi
xfce.thunar xfce.thunar
xfce.xfconf # needed to save preferences of thunar xfce.xfconf # needed to save preferences of thunar
xfce.ristretto xfce.ristretto
xfce.tumbler # for thumbnails of imgs xfce.tumbler # for thumbnails of imgs
pavucontrol
jq
keynav
# other # media
pavucontrol
mpv mpv
vlc
feh feh
kolourpaint kolourpaint
calibre
# browsers # browsers
firefox firefox
@@ -81,12 +96,15 @@
openssl openssl
stdenv stdenv
rustup rustup
wabt # wasm binary toolkit
wasmedge # to execute wasm binaries
sage sage
go go
python3 (python3.withPackages(ps: with ps; [
matplotlib numpy
]))
pipx pipx
nodejs nodejs
]; ];
environment.variables = { environment.variables = {