diff options
Diffstat (limited to 'tw/system/vin.scm')
-rw-r--r-- | tw/system/vin.scm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tw/system/vin.scm b/tw/system/vin.scm index e8baec57..e74d0df6 100644 --- a/tw/system/vin.scm +++ b/tw/system/vin.scm @@ -4,6 +4,7 @@ #:use-module (gnu system locale) #:use-module (gnu system nss) #:use-module (guix gexp) + #:use-module (tw services restic) #:use-module (tw system)) ;; The device's BIOS does not support UEFI, sadly. It also doesn't recognise @@ -40,7 +41,19 @@ ;; Below is the list of system services. To search for available ;; services, run 'guix system search KEYWORD' in a terminal. - (services (server-base-services host-name)) + (services + (cons* + (service restic-server-service-type + (restic-server-configuration + (repository-path "/var/backups/restic") + (bind-address + (server-wireguard-address host-name ":8181")) + (append-only? #t) ; run cleanup jobs separately, using plain restic + (private-repos-only? #t) ; require /user/ path prefix + (prometheus? #t) + (prometheus-auth? #f))) + + (server-base-services host-name))) ;; The list of user accounts ('root' is implicit). (users %server-base-user-accounts) |