diff options
author | Timo Wilken | 2023-04-20 23:39:07 +0200 |
---|---|---|
committer | Timo Wilken | 2023-04-21 14:32:02 +0200 |
commit | 5ddf8241ec2eb8faed264781fedc927e62a3c20d (patch) | |
tree | 2d12fec3d87623a17cc42cf05f5ce1d41d380351 /tw/system | |
parent | 79ea4090f9b5591e1e93c0bc5a5250ce4b390981 (diff) |
Draft of restic server deployment
Diffstat (limited to 'tw/system')
-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) |