backup nixos config, nvim: add gitlink-vim

add also a script to copy the nixos config files to the repo
This commit is contained in:
arnaucube
2023-07-11 23:52:19 +02:00
parent 2e2a6ba78a
commit 471bc31a87
4 changed files with 31 additions and 0 deletions

1
backup-nixos-configs.sh Normal file
View File

@@ -0,0 +1 @@
cp /etc/nixos/* ./nixos/

View File

@@ -35,6 +35,8 @@ Plug 'luochen1990/rainbow'
" git " git
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
" gitlink
Plug 'mazubieta/gitlink-vim'
" go " go
Plug 'fatih/vim-go' " Amazing combination of features. Plug 'fatih/vim-go' " Amazing combination of features.
@@ -227,6 +229,15 @@ syntax enable
" viewer method: " viewer method:
let g:vimtex_view_method = 'zathura' let g:vimtex_view_method = 'zathura'
"" gitlink
function! CopyGitLink(...) range
redir @+
silent echo gitlink#GitLink(get(a:, 1, 0))
redir END
endfunction
nmap <leader>gl :call CopyGitLink()<CR>
vmap <leader>gl :call CopyGitLink(1)<CR>
"" sage syntax "" sage syntax
augroup filetypedetect augroup filetypedetect
au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python

View File

@@ -97,6 +97,8 @@
chromium chromium
xfce.ristretto xfce.ristretto
pavucontrol pavucontrol
sage
obs-studio
]; ];
programs.zsh.enable = true; programs.zsh.enable = true;
@@ -136,4 +138,9 @@
# bluetooth related # bluetooth related
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
services.blueman.enable = true; services.blueman.enable = true;
# obs virtual camera
boot.extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
} }

View File

@@ -29,4 +29,16 @@
# add pulseaudio support to manage audio # add pulseaudio support to manage audio
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
## NOTES:
# Susspend issue:
# https://github.com/linux-surface/linux-surface/wiki/Known-Issues-and-FAQ#suspend-aka-sleep-vs-lid-closingopening-events
# run:
# > sudo modprobe -r surface_gpe
# and:
# > sudo bash -c 'echo -e "\n# Blacklisting lid vs. suspend issue module\nblacklist surface_gpe" >> /etc/modprobe.d/blacklist.conf'
#
# Now folding the keyboard to the screen will not suspend and brick the
# session, but you will need to manually suspend the session if saving battery
# is desired.
} }