mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-01-15 17:05:02 +00:00
services: tailscale: Run with inherited environment variables.
* modules/rosenthal/services/networking.scm (tailscale-configuration) [iptables]: Remove field. (tailscale-shepherd-service): Remove configuration to environment variables.
This commit is contained in:
parent
f4d7a54232
commit
0fa66ce699
@ -107,10 +107,6 @@
|
|||||||
(file-like tailscale)
|
(file-like tailscale)
|
||||||
"The tailscale package to use.")
|
"The tailscale package to use.")
|
||||||
|
|
||||||
(iptables
|
|
||||||
(file-like iptables-nft)
|
|
||||||
"The iptables package to use.")
|
|
||||||
|
|
||||||
(log-file
|
(log-file
|
||||||
(string "/var/log/tailscaled.log")
|
(string "/var/log/tailscaled.log")
|
||||||
"Path to log file.")
|
"Path to log file.")
|
||||||
@ -141,14 +137,8 @@ to #f.")
|
|||||||
|
|
||||||
(define tailscale-shepherd-service
|
(define tailscale-shepherd-service
|
||||||
(match-record-lambda <tailscale-configuration>
|
(match-record-lambda <tailscale-configuration>
|
||||||
(tailscale iptables log-file socket state-directory
|
(tailscale log-file socket state-directory
|
||||||
upload-log? verbosity extra-options)
|
upload-log? verbosity extra-options)
|
||||||
(let ((environment
|
|
||||||
#~(list (string-append "PATH="
|
|
||||||
(string-join
|
|
||||||
'(#$(file-append iptables "/sbin")
|
|
||||||
#$(file-append iproute "/sbin"))
|
|
||||||
":")))))
|
|
||||||
(list (shepherd-service
|
(list (shepherd-service
|
||||||
(documentation "Run tailscaled")
|
(documentation "Run tailscaled")
|
||||||
(provision '(tailscaled))
|
(provision '(tailscaled))
|
||||||
@ -164,9 +154,8 @@ to #f.")
|
|||||||
"-statedir" #$state-directory
|
"-statedir" #$state-directory
|
||||||
"-verbose" #$(number->string verbosity)
|
"-verbose" #$(number->string verbosity)
|
||||||
#$@extra-options)
|
#$@extra-options)
|
||||||
#:environment-variables #$environment
|
|
||||||
#:log-file #$log-file))
|
#:log-file #$log-file))
|
||||||
(stop #~(make-kill-destructor)))))))
|
(stop #~(make-kill-destructor))))))
|
||||||
|
|
||||||
(define tailscale-service-type
|
(define tailscale-service-type
|
||||||
(service-type
|
(service-type
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user