summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-05-03 11:05:03 +0200
committerAlex Auvolat <alex@adnab.me>2023-05-03 11:05:03 +0200
commit6dba53af843594854d51b71107b16305258b6ee8 (patch)
tree79af0be1720c6c2ff9ba05a91b933193e755a518
parentf23cb61b49a7edb16945d601369b4ff10901c28d (diff)
downloaduser-config-6dba53af843594854d51b71107b16305258b6ee8.tar.gz
user-config-6dba53af843594854d51b71107b16305258b6ee8.zip
vim simplify ; add lindy backup cron
-rw-r--r--nixos/lindy.nix4
-rw-r--r--vim/vimrc7
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
-
-