services: cloudflare-tunnel-service-type: Use cloudflared package.

* rosenthal/services/child-error.scm (cloudflare-tunnel-configuration)
(cloudflare-tunnel-shepherd-service): Switch to cloudflared package.
remotes/origin/cloudflared-unbundle
Hilton Chain 2 years ago
parent e16ddf7be9
commit e3ed83a22a
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292
  1. 6
      rosenthal/services/child-error.scm

@ -6,6 +6,7 @@
#:use-module (ice-9 match) #:use-module (ice-9 match)
#:use-module (guix records) #:use-module (guix records)
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (gnu home services) #:use-module (gnu home services)
#:use-module (gnu home services shepherd) #:use-module (gnu home services shepherd)
#:use-module (gnu packages admin) #:use-module (gnu packages admin)
@ -14,6 +15,7 @@
#:use-module (gnu services databases) #:use-module (gnu services databases)
#:use-module (gnu services shepherd) #:use-module (gnu services shepherd)
#:use-module (gnu system shadow) #:use-module (gnu system shadow)
#:use-module (rosenthal packages networking)
#:use-module (rosenthal utils home-services-utils) #:use-module (rosenthal utils home-services-utils)
#:export (clash-configuration #:export (clash-configuration
clash-service-type clash-service-type
@ -108,7 +110,7 @@
(define-configuration/no-serialization cloudflare-tunnel-configuration (define-configuration/no-serialization cloudflare-tunnel-configuration
(cloudflared (cloudflared
(string "/bin/cloudflared") (package cloudflared)
"The cloudflared executable.") "The cloudflared executable.")
;; Tunnel options ;; Tunnel options
@ -154,7 +156,7 @@ headers. This can expose sensitive information in your logs.")
(provision '(cloudflare-tunnel)) (provision '(cloudflare-tunnel))
(requirement '(loopback networking)) (requirement '(loopback networking))
(start #~(make-forkexec-constructor (start #~(make-forkexec-constructor
(list #$cloudflared (list #$(file-append cloudflared "/bin/cloudflared")
"tunnel" "tunnel"
"--no-autoupdate" "--no-autoupdate"
"--metrics" #$metrics "--metrics" #$metrics

Loading…
Cancel
Save