summaryrefslogtreecommitdiff
path: root/tw/home/lap.scm
diff options
context:
space:
mode:
authorTimo Wilken2023-04-30 00:46:54 +0200
committerTimo Wilken2023-04-30 00:46:54 +0200
commit0f4859d87ad14c2af7f944cada9a5e19e8a6c6ef (patch)
tree4991211cd518777444e1fb0a9dd496ca69ecf808 /tw/home/lap.scm
parente1ff6899f637ff0b4808994d66e982a885bcd150 (diff)
Configure regular restic backups
Diffstat (limited to 'tw/home/lap.scm')
-rw-r--r--tw/home/lap.scm23
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