nixos: add wasm packages, reorganize systemPackages. vim: wasm syntax, vim-maximizer
arnaucube git@arnaucube.com
Wed, 15 Jan 2025 18:41:26 +0100
3 files changed,
40 insertions(+),
18 deletions(-)
M
backup-nixos-configs.sh
→
backup-nixos-configs.sh
@@ -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
M
init.vim
→
init.vim
@@ -66,7 +66,6 @@
" LaTeX support. It needs latexmk & zathura Plug 'lervag/vimtex' - " deoplete Plug 'Shougo/deoplete.nvim' let g:deoplete#enable_at_startup = 1@@ -110,6 +109,8 @@ Plug 'tomasr/molokai'
Plug 'srcery-colors/srcery-vim' Plug 'rakr/vim-one' Plug 'morhetz/gruvbox' + +Plug 'szw/vim-maximizer' call plug#end()@@ -245,15 +246,18 @@ 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 " copy&paste from system clipboard 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>
M
nixos/common-configuration.nix
→
nixos/common-configuration.nix
@@ -23,9 +23,7 @@ };
environment.systemPackages = with pkgs; [ - # minimal - vim - neovim + # utilities wget tmux git@@ -33,29 +31,46 @@ delta
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 + + # media pavucontrol - jq - keynav - - # other mpv + vlc feh kolourpaint + calibre # browsers firefox@@ -81,12 +96,15 @@ pkg-config
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 = {