backup nixos config, nvim: add gitlink-vim add also a script to copy the nixos config files to the repo
arnaucube root@arnaucube.com
Tue, 11 Jul 2023 23:52:19 +0200
4 files changed,
31 insertions(+),
0 deletions(-)
M
init.vim
→
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.@@ -226,6 +228,15 @@ syntax enable
" Viewer options: One may configure the viewer either by specifying a built-in " 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
M
nixos/configuration.nix
→
nixos/configuration.nix
@@ -97,6 +97,8 @@ qutebrowser
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 + ]; }
M
nixos/surface-extra-hardware-configuration.nix
→
nixos/surface-extra-hardware-configuration.nix
@@ -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. }