|
|
@ -16,6 +16,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 binaries) |
|
|
|
#:use-module (rosenthal packages networking) |
|
|
|
#: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 |
|
|
@ -41,8 +42,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
(define-configuration/no-serialization clash-configuration |
|
|
|
(define-configuration/no-serialization clash-configuration |
|
|
|
(clash |
|
|
|
(clash |
|
|
|
(string "/bin/clash") |
|
|
|
(file-like clash-bin) |
|
|
|
"The clash executable.") |
|
|
|
"The clash package.") |
|
|
|
(log-file |
|
|
|
(log-file |
|
|
|
(string "/var/log/clash.log") |
|
|
|
(string "/var/log/clash.log") |
|
|
|
"Where the logs go.") |
|
|
|
"Where the logs go.") |
|
|
@ -83,7 +84,8 @@ |
|
|
|
(provision '(clash)) |
|
|
|
(provision '(clash)) |
|
|
|
(requirement '(loopback networking)) |
|
|
|
(requirement '(loopback networking)) |
|
|
|
(start #~(make-forkexec-constructor |
|
|
|
(start #~(make-forkexec-constructor |
|
|
|
(list #$clash "-d" #$data-directory) |
|
|
|
(list #$(file-append clash "/bin/clash") |
|
|
|
|
|
|
|
"-d" #$data-directory) |
|
|
|
#:user "clash" |
|
|
|
#:user "clash" |
|
|
|
#:group "clash" |
|
|
|
#:group "clash" |
|
|
|
#:log-file #$log-file)) |
|
|
|
#:log-file #$log-file)) |
|
|
|