aboutsummaryrefslogtreecommitdiff
path: root/tw/home.scm
diff options
context:
space:
mode:
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)))