mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
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:
1
backup-nixos-configs.sh
Normal file
1
backup-nixos-configs.sh
Normal file
@@ -0,0 +1 @@
|
||||
cp /etc/nixos/* ./nixos/
|
||||
11
init.vim
11
init.vim
@@ -35,6 +35,8 @@ Plug 'luochen1990/rainbow'
|
||||
|
||||
" git
|
||||
Plug 'tpope/vim-fugitive'
|
||||
" gitlink
|
||||
Plug 'mazubieta/gitlink-vim'
|
||||
|
||||
" go
|
||||
Plug 'fatih/vim-go' " Amazing combination of features.
|
||||
@@ -227,6 +229,15 @@ syntax enable
|
||||
" viewer method:
|
||||
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
|
||||
augroup filetypedetect
|
||||
au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python
|
||||
|
||||
@@ -97,6 +97,8 @@
|
||||
chromium
|
||||
xfce.ristretto
|
||||
pavucontrol
|
||||
sage
|
||||
obs-studio
|
||||
];
|
||||
|
||||
programs.zsh.enable = true;
|
||||
@@ -136,4 +138,9 @@
|
||||
# bluetooth related
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
|
||||
# obs virtual camera
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||
v4l2loopback
|
||||
];
|
||||
}
|
||||
|
||||
@@ -29,4 +29,16 @@
|
||||
|
||||
# add pulseaudio support to manage audio
|
||||
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.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user