| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 |
|
| 20 | (define-module (gnu home services syncthing)
|
| 21 | #:use-module (gnu services)
|
| 22 | #:use-module (gnu home services)
|
| 23 | #:use-module (gnu services syncthing)
|
| 24 | |
| 25 | #:use-module (gnu home services shepherd)
|
| 26 | #:export (home-syncthing-service-type)
|
| 27 | #:re-export (syncthing-configuration
|
| 28 | syncthing-configuration?
|
| 29 | syncthing-config-file
|
| 30 | syncthing-config-file?
|
| 31 | syncthing-device
|
| 32 | syncthing-device?
|
| 33 | syncthing-folder
|
| 34 | syncthing-folder?
|
| 35 | syncthing-folder-device
|
| 36 | syncthing-folder-device?))
|
| 37 |
|
| 38 | (define home-syncthing-service-type
|
| 39 | (service-type
|
| 40 | (inherit (system->home-service-type syncthing-service-type))
|
| 41 | |
| 42 | |
| 43 | (extensions (list (service-extension home-files-service-type
|
| 44 | syncthing-files-service)
|
| 45 | (service-extension home-shepherd-service-type
|
| 46 | syncthing-shepherd-service)))
|
| 47 | (default-value (for-home (syncthing-configuration)))))
|