From 6dba53af843594854d51b71107b16305258b6ee8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 3 May 2023 11:05:03 +0200 Subject: vim simplify ; add lindy backup cron --- nixos/lindy.nix | 4 ++++ vim/vimrc | 7 +------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/nixos/lindy.nix b/nixos/lindy.nix index 4ec8606..dac7933 100644 --- a/nixos/lindy.nix +++ b/nixos/lindy.nix @@ -80,6 +80,10 @@ Kogami UUID=61534c91-df18-4c71-9244-54e677f5d4fa /root/kogami_key users.users.lx.home = "/home/lx.nix"; + # Backup + services.cron.enable = true; + services.cron.systemCronJobs = [ "0 20 * * * root /media/Zonz/lindy/do-backup.sh" ]; + # Nvidia graphics services.xserver.videoDrivers = [ "nvidia" ]; hardware.opengl.enable = true; diff --git a/vim/vimrc b/vim/vimrc index a5f8092..8ea1315 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -73,10 +73,7 @@ let NERDTreeIgnore=['\.o$', '\.cmo$', '\.cmx$', '\.cmi$', '\.lib$', '\.pyc$', '^ " set completeopt=menuone,menu,longest,preview -" set undofile -set directory=~/.vim/swp -set backupdir=~/.vim/backup -" set undodir=~/.vim/undo +set directory=~/.vim/swp,/tmp " =========== FILE TYPE SPECIFIC @@ -103,5 +100,3 @@ autocmd FileType tex setlocal spell spelllang=en " packloadall " silent! helptags ALL - - -- cgit v1.2.3