diff --git a/backup-nixos-configs.sh b/backup-nixos-configs.sh new file mode 100644 index 0000000..bc92269 --- /dev/null +++ b/backup-nixos-configs.sh @@ -0,0 +1 @@ +cp /etc/nixos/* ./nixos/ diff --git a/init.vim b/init.vim index 815e668..e42f3a8 100644 --- a/init.vim +++ b/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 gl :call CopyGitLink() +vmap gl :call CopyGitLink(1) + "" sage syntax augroup filetypedetect au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 31eabea..0e82d8b 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -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 + ]; } diff --git a/nixos/surface-extra-hardware-configuration.nix b/nixos/surface-extra-hardware-configuration.nix index 312572d..b877d12 100644 --- a/nixos/surface-extra-hardware-configuration.nix +++ b/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. }