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

Loading…
Cancel
Save