summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-
-