aboutsummaryrefslogtreecommitdiff
path: root/tw/home.scm
diff options
context:
space:
mode:
authorTimo Wilken2024-02-16 20:27:04 +0100
committerTimo Wilken2024-02-16 20:27:25 +0100
commitb2e40e5e0d7b02c62764a53b8e52f2c98c5379b1 (patch)
tree4ca5f81f96b934283318972c2f2ef85e0e35709d /tw/home.scm
parent1d478adf702367597e51ae897b7542098bd6fa8c (diff)
Back up user data on new machines
Diffstat (limited to 'tw/home.scm')
-rw-r--r--tw/home.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/tw/home.scm b/tw/home.scm
index d58c7a1d..c749bbff 100644
--- a/tw/home.scm
+++ b/tw/home.scm
@@ -21,6 +21,7 @@
#:use-module (tw packages games)
#:use-module (tw packages mail)
#:use-module (tw packages xorg)
+ #:use-module (tw services restic)
#:use-module (tw system)
#:use-module (tw theme))
@@ -640,3 +641,14 @@ show_border=1
(user "timo@twilken.net")
(password-eval "pass www/mythic-beasts/email/timo | head -1"))))))
(default-account "mythic")))))
+
+(define-public (restic-pass-key key)
+ (restic-password-source (type 'pass) (name key)))
+
+(define-public (restic-vin.wg-repo path)
+ (restic-rest-repository
+ (username "timo")
+ (password (restic-pass-key "computers/vin/restic-server/timo"))
+ (hostname "vin.wg")
+ (port 8181)
+ (path path)))