diff options
Diffstat (limited to 'tw/home/lap.scm')
-rw-r--r-- | tw/home/lap.scm | 23 |
1 files changed, 23 insertions, 0 deletions
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 |