From b2e40e5e0d7b02c62764a53b8e52f2c98c5379b1 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Fri, 16 Feb 2024 20:27:04 +0100 Subject: Back up user data on new machines --- tw/home.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tw/home.scm') 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))) -- cgit v1.2.3