From 0f4859d87ad14c2af7f944cada9a5e19e8a6c6ef Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Sun, 30 Apr 2023 00:46:54 +0200 Subject: Configure regular restic backups --- tw/home/lap.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'tw/home/lap.scm') diff --git a/tw/home/lap.scm b/tw/home/lap.scm index 264e566b..6d3df7ac 100644 --- a/tw/home/lap.scm +++ b/tw/home/lap.scm @@ -38,6 +38,7 @@ #:use-module ((nongnu packages steam-client) #:select (steam)) #:use-module (tw home) + #:use-module (tw services restic) #:use-module (tw theme)) (define pim-packages @@ -124,6 +125,28 @@ (simple-service 'restic-environment home-environment-variables-service-type `(("RESTIC_PASSWORD_COMMAND" . "pass computers/vin/restic-repos/laptop"))) + (service home-restic-backup-service-type + (list (restic-repository + (schedule #~"0 */2 * * *") + (paths '(;; documents and work + "~/documents" + "~/src" + "~/.local/share/zsh/history" + ;; secrets + "~/.local/share/ssh-keys" + "~/.local/share/gnupg" + "~/.config/cern-ca-bundle.crt" + "~/.config/grid-personal-cert.pem" + "~/.config/grid-personal-key.pem" + ;; games + "~/savegames" + "~/.config/simutrans" + "~/.local/share/0ad" + "~/.local/share/warzone2100" + "~/.local/share/widelands")) + (url-command "echo \"rest:http://timo:$(pass computers/vin/restic-server/timo | head -1)@vin.wg:8181/timo/laptop\"") + (password-command "pass computers/vin/restic-repos/laptop")))) + ;; Redshift: make the screen turn redder at night. (service home-redshift-service-type (home-redshift-configuration -- cgit v1.2.3