diff options
author | Alex Auvolat <alex@adnab.me> | 2023-05-03 11:05:03 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-05-03 11:05:03 +0200 |
commit | 6dba53af843594854d51b71107b16305258b6ee8 (patch) | |
tree | 79af0be1720c6c2ff9ba05a91b933193e755a518 | |
parent | f23cb61b49a7edb16945d601369b4ff10901c28d (diff) | |
download | user-config-6dba53af843594854d51b71107b16305258b6ee8.tar.gz user-config-6dba53af843594854d51b71107b16305258b6ee8.zip |
vim simplify ; add lindy backup cron
-rw-r--r-- | nixos/lindy.nix | 4 | ||||
-rw-r--r-- | 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; @@ -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 - - |