Browse Source

backup nixos config, nvim: add gitlink-vim

add also a script to copy the nixos config files to the repo
master
arnaucube 1 year ago
parent
commit
471bc31a87
4 changed files with 31 additions and 0 deletions
  1. +1
    -0
      backup-nixos-configs.sh
  2. +11
    -0
      init.vim
  3. +7
    -0
      nixos/configuration.nix
  4. +12
    -0
      nixos/surface-extra-hardware-configuration.nix

+ 1
- 0
backup-nixos-configs.sh

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

+ 11
- 0
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

+ 7
- 0
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
];
}

+ 12
- 0
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.
}

Loading…
Cancel
Save